mongodb服务停止启动以及自启动-linux
关闭服务:
/home/mongodb/bin/mongod -f /home/mongodb/config/mongodb.conf –shutdown
启动服务
/home/mongodb/bin/mongod -f /home/mongodb/config/mongodb.conf
设置开机自动
/home/mongodb/bin/mongod --config /home/mongodb/config/mongodb.conf
#################