1.连接本地数据库mongodb://localhostmongo --host 远程IP --port 远程端口 -u 帐户名 -p 密码名
2.连接远程数据库,使用用户名fred,密码foobar登录localhost的admin数据库。mongodb://fred:foobar@localhost
3.连接三台mongo服务器mongodb://localhost,localhost:27018,localhost:27019