📅  最后修改于: 2022-03-11 15:04:39.105000             🧑  作者: Mango
1 mongo # connects to mongodb://127.0.0.1:27017 by default
2 mongo --host --port -u -p # omit the password if you want a prompt
3 mongo "mongodb://192.168.1.1:27017"
4 mongo "mongodb+srv://cluster-name.abcde.mongodb.net/" --username # MongoDB Atlas