2.连接远程数据库,使用用户名fred,密码foobar登录localhost的admin数据库。mongodb://fred:foobar@localhost
3.连接三台mongo服务器mongodb://localhost,localhost:27018,localhost:27019
mongodb的连接
原文:https://blog.51cto.com/9237101/2453443