摘要: 启动 mongod --dbpath /srv/mongodb/ mongod --fork --logpath /var/log/mongodb/mongod.log 停止mongod进程 use admin db.shutdownServer()#二进制shellmongod --shutdow 阅读全文
posted @ 2024-07-10 06:20 wongchaofan 阅读(1) 评论(0) 推荐(0) 编辑
摘要: apt、yum安装默认配置文件位置:/etc/mongod.conf 如果您使用TGZ或ZIP文件安装了 MongoDB,则需要创建自己的配置文件。 mongod --config /etc/mongod.conf mongod -f /etc/mongod.conf 考虑以下基本配置: proce 阅读全文
posted @ 2024-07-10 05:43 wongchaofan 阅读(1) 评论(0) 推荐(0) 编辑