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.
구체적인 이유를 알 수 없습니다. 구체적인 이유를 보려면 mongod.log에 가야 합니다. http://www.youyong.top/ 기사/115949eb7c3e8
mongod 스타트업 로그를 보면
에 있을 겁니다./var/log/mongo/mongod.log