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.
Saya tidak dapat melihat sebab khusus untuk ini. Anda perlu pergi ke mongod.log untuk melihat sebab khusus Untuk paparan dan pengendalian ralat khusus, sila rujuk artikel ini: http://www.youyong.top/. artikel/115949eb7c3e8
Lihat log permulaan mongod, ia sepatutnya berada dalam
/var/log/mongo/mongod.log