linux环境下mongodb启动操作

pkill mongod

进入mongo shell :运行 db.shutdownServer()

1.进入mongo的shell  : mongo --port 1008

2.进入bin目录下 mongod -f ../conf/mongodb.cfg

3.检查是否启动成功

rs.status()

原文地址:https://www.cnblogs.com/qiyc/p/9239506.html