centos启动mongo ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

文章目录

      • 场景
      • 解决

场景

  • centos7 重启Mongodb失败
Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details.

● mongod.service - MongoDB Database Server
   Loaded: loaded (/usr/lib/systemd/system/mongod.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2019-09-18 18:06:44 HKT; 6s ago
     Docs: https://docs.mongodb.org/manual
  Process: 10382 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
  Process: 10379 ExecStartPre=/usr/bin/chmod 0755 /var/run/mongodb (code=exited, status=0/SUCCESS)
  Process: 10376 ExecStartPre=/usr/bin/chown mongod:mongod /var/run/mongodb (code=exited, status=0/SUCCESS)
  Process: 10374 ExecStartPre=/usr/bin/mkdir -p /var/run/mongodb (code=exited, status=0/SUCCESS)
 Main PID: 1091 (code=exited, status=0/SUCCESS)


解决

  • sudo chown mongod:mongod /tmp/mongodb-27017.sock

你可能感兴趣的:(mongod,centos,linux)