mongod.service: control process exited, code=exited status=14

mongodb原来默认是没有密码的,更新了配置/etc/mongod.conf 增加了密码验证后启动不了。

security:
  authorization: enabled

提示 mongod.service: control process exited, code=exited status=14

经查,是由于权限的问题,执行以下命令解决

chown -R mongod:mongod /var/lib/mongo/
chown mongod:mongod /tmp/mongodb-27017.sock
systemctl restart mongod
systemctl status mongod
This entry was posted in 应用. Bookmark the permalink.

发表评论