mongodb加载配置文件启动

mongod -f mongodb.conf --fork #--fork 后台启动

mongodb服务关闭

pkill mongod

mongodb配置

vim /etc/mongodb.conf
Scroll to Top