ITeye博客

mongodb自启动

zlr · 2018-10-31 09:42 · mongodb · 数据库 · Markdown

https://blog.csdn.net/i_vic/article/details/53466348

http://www.zhimengzhe.com/shujuku/other/158372.html

常用命令:

启动开机服务之前,必须要先启动mongodb服务。确认mongodb服务是否开机启动,需要输入systemctl is-enabled mongodb.service的值是否enabled.

#systemctl start mongodb #启动mongodb服务

#systemctl enable mongodb.service #设置开机启动mongodb服务

#systemctl is-enabled mongodb.service #查看mongodb服务是否设置开机启动 #systemctl disable mongodb.service#停止mongodb服务开机启动

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。