Mongodb远程登陆

2017-08-07  本文已影响60人  IT教程

欢迎访问我的个人博客网站:http://www.yanmin99.com/

一、Mongodb远程登陆

# network interfaces
net:
port: 27017
bindIp: 0.0.0.0  # Listen to local interface only, comment to listen on all interfaces
yanmin:~ yanmin$ mongo 10.121.215.67:27017/admin  -uroot  -p123456
MongoDB shell version v3.4.6
connecting to: mongodb://10.121.215.67:27017/admin
MongoDB server version: 3.4.6
Server has startup warnings:
2017-08-04T16:00:16.065+0800 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-08-04T16:00:16.065+0800 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-08-04T16:00:16.065+0800 I CONTROL  [initandlisten]
MongoDB Enterprise > show databases;
admin             0.000GB
bill              0.010GB
cc                0.002GB
cc_data_20140728  0.000GB
local             0.000GB
weixin            0.000GB
MongoDB Enterprise >
上一篇 下一篇

猜你喜欢

热点阅读