centos7 启动 mongodb 报错
PHPz
PHPz 2017-05-02 09:21:01
0
2
1216

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.

PHPz
PHPz

学习是最好的投资!

全部回复(2)
phpcn_u5693

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

洪涛

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

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!