无法重启mongodb

时间:2015-09-10 02:57:26

标签: mongodb

我正在尝试重新启动我的mongodb,但它有错误

这是错误:

[root@testdb vagrant]# sudo service mongod restart
Stopping mongod:                                           [FAILED]
Starting mongod: warning: bind_ip of 0.0.0.0 is unnecessary; listens on all ips by default
about to fork child process, waiting until server is ready for connections.
forked process: 6843
ERROR: child process failed, exited with error number 100
                                                           [FAILED]

我的配置文件是:

bind_ip = 0.0.0.0
dbpath = /var/lib/mongodb
fork = true
logappend = true
logpath = /var/log/mongodb/mongodb.log
nojournal = false
pidfilepath = /var/run/mongodb/mongodb.pid
port = 27017
rest = false
smallfiles = false

这是我的日志

enter image description here

这是ps ax | grep mongod

的输出
1935 ?        Sl     1:53 /usr/bin/mongod --config /etc/mongodb.conf
5592 pts/0    S+     0:00 tail -f /var/log/mongodb/mongodb.log
5889 pts/1    S+     0:00 grep mongod

我也删除了/var/lib/mongodb/mongod.lock

当我重新启动时,输出停止失败。

Stopping mongod:                                           [FAILED]
Starting mongod: warning: bind_ip of 0.0.0.0 is unnecessary; listens on all ips by default
about to fork child process, waiting until server is ready for connections.
forked process: 5874
child process started successfully, parent exiting
                                                           [  OK  ]

0 个答案:

没有答案