mongodb配置开启与关闭

ps -ef|grep mongod

查看mongodb的后台进程

 

tail -f mongodb.log

动态查看日志

 

./mongod --shutdown --dbpath=/home/wenxudong/data/db

关闭进程

 

telnet localhost 27017

 

MongoDB启动关闭

./mongod –f ../etc/mongodb.conf (带配置文件启动)

服务器默认端口27017

./mongod --shutdown或./mongod –f ../etc/mongodb.conf –shutdown关闭

默认数据路目录在/data/db

自定义参数启动

 

Web控制台

配置文件rest=true,打开web控制台

默认端口28017

访问url: http://ip:28017

posted @ 2016-12-29 10:39  wenxudong  阅读(168)  评论(0编辑  收藏  举报