suchen

Heim  >  Fragen und Antworten  >  Hauptteil

centos7 启动 mongodb 报错

centos7 yum 安装 mongodb
执行 systemctl start mongod
日志:
mongod.service - SYSV: Mongo is a scalable, document-oriented database.
Loaded: loaded (/etc/rc.d/init.d/mongod)
Active: failed (Result: exit-code) since 四 2016-08-18 20:54:19 CST; 3s ago
Docs: man:systemd-sysv-generator(8)
Process: 28344 ExecStop=/etc/rc.d/init.d/mongod stop (code=exited, status=0/SUCCESS)
Process: 28692 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE)
8月 18 20:54:19 localhost.localdomain systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
8月 18 20:54:19 localhost.localdomain runuser[28699]: pam_unix(runuser:session): session opened for user mongod by (uid=0)
8月 18 20:54:19 localhost.localdomain runuser[28699]: pam_unix(runuser:session): session closed for user mongod
8月 18 20:54:19 localhost.localdomain mongod[28692]: Starting mongod: [失败]
8月 18 20:54:19 localhost.localdomain systemd[1]: mongod.service: control process exited, code=exited status=1
8月 18 20:54:19 localhost.localdomain systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
8月 18 20:54:19 localhost.localdomain systemd[1]: Unit mongod.service entered failed state.
8月 18 20:54:19 localhost.localdomain systemd[1]: mongod.service failed.

PHPzPHPz2765 Tage vor1225

Antworte allen(2)Ich werde antworten

  • phpcn_u5693

    phpcn_u56932017-06-21 11:51:51

    这个看不出具体原因,具体原因得去mongod.log中去看,具体查看及错误处理,可参考这篇文章: http://www.youyong.top/article/115949eb7c3e8

    Antwort
    1
  • PHP中文网

    PHP中文网2017-05-02 09:23:01

    看看mongod启动的log,应该在/var/log/mongo/mongod.log

    Antwort
    0
  • StornierenAntwort