mongodb加载配置文件启动mongod -f mongodb.conf --fork #--fork 后台启动 mongodb服务关闭pkill mongod mongodb配置vim /etc/mongodb.conf