转载:Mongodb start

 2023-09-10 阅读 17 评论 0

摘要:Mongodb 操作 Start MongoDB The MongoDB instance stores its data files in the/var/lib/mongoand its log files in/var/log/mongo, and run using themongoduser account. If you change the user that runs the MongoDB process, youmustmodify the access control right

Mongodb 操作

Start MongoDB

The MongoDB instance stores its data files in the /var/lib/mongo and its log files in /var/log/mongo, and run using themongod user account. If you change the user that runs the MongoDB process, you must modify the access control rights to the/var/lib/mongo and /var/log/mongo directories.

Start the mongod process by issuing the following command (as root or with sudo):

service mongod start

You can verify that the mongod process has started successfully by checking the contents of the log file at/var/log/mongo/mongod.log.

You may optionally ensure that MongoDB will start following a system reboot by issuing the following command (with root privileges:)

chkconfig mongod on

Stop MongoDB

启动mongodb服务。Stop the mongod process by issuing the following command (as root or with sudo):

service mongod stop

Restart MongoDB

You can restart the mongod process by issuing the following command (as root or with sudo):

service mongod restart

 

 url:http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/

转载于:https://www.cnblogs.com/mliudong/p/3451747.html

版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。

原文链接:https://hbdhgg.com/2/34182.html

发表评论:

本站为非赢利网站,部分文章来源或改编自互联网及其他公众平台,主要目的在于分享信息,版权归原作者所有,内容仅供读者参考,如有侵权请联系我们删除!

Copyright © 2022 匯編語言學習筆記 Inc. 保留所有权利。

底部版权信息