linux启动mongodb命令
时间: 2023-09-26 14:06:53 浏览: 107
在linux下配置 和启动mongodb
在Linux中启动MongoDB的命令可以使用以下几种方式:
1. 使用绝对路径启动MongoDB,可以使用以下命令:
cd /usr/local/mongodb/mongodb-linux-x86_64-rhel70-5.0.8/bin/
./mongod --config /usr/local/mongodb/etc/mongodb.conf
这个命令首先进入MongoDB安装目录下的bin文件夹,然后执行mongod命令,并指定配置文件的路径为/usr/local/mongodb/etc/mongodb.conf。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Linux启动并进入mongodb指令](https://blog.csdn.net/weixin_53236380/article/details/124861364)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [Linux服务器下启动mongodb](https://blog.csdn.net/qq_28643619/article/details/87091209)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文