Failed to start mongod.service:
作者:
AsaGuo | 来源:发表于
2018-07-23 17:03 被阅读97次
- 需要手动新建/lib/systemd/system/mongod.service文件,并写入下面内容:
[Unit]
Description=High-performance, schema-free document-oriented database
After=network.target
Documentation=https://docs.mongodb.org/manual
[Service]
User=mongodb
Group=mongodb
ExecStart=/usr/bin/mongod --quiet --config /etc/mongod.conf
[Install]
WantedBy=multi-user.target
- 然后执行 (激活mongod service)
sudo systemctl enable mongod
- 启动、重启和关闭命令
sudo service mongod start
sudo service mongod restart
sudo service mongod stop
本文标题:Failed to start mongod.service:
本文链接:https://www.haomeiwen.com/subject/ygmjmftx.html
网友评论