输入banner图图片脚本导航/分类

mongodb的连接

1.连接本地数据库
mongodb://localhost
mongo --host 远程IP --port 远程端口 -u 帐户名 -p 密码名

2.连接远程数据库,使用用户名fred,密码foobar登录localhost的admin数据库。
mongodb://fred:foobar@localhost

3.连接三台mongo服务器
mongodb://localhost,localhost:27018,localhost:27019

mongodb的连接

标签:三台   localhost   min   red   mongo   port   admin   bar   host