8-05 2,592 views
启动服务:service mongod start
停止服务:service mongod stop
重启服务:service mongod restart
开机自启动: chkconfig mongod on
卸载:yum erase $(rpm -qa | grep mongodb-org)
删除数据:sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongo
sudo rm -r /var/lib/mongo