今天我更新了我的Mongo.. mongodb-stable(从10gen仓库获取)
但是我的服务已经停止了。 以下命令不起作用
$ sudo service mongodb start
$ start: Unknown job: mongodb
即使使用这个命令也无效
$ sudo /etc/init.d/mongodb start
$ Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mongodb start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mongodb
start: Unknown job: mongodb
没有运行中的Mongo进程
$ ps -ef|grep mongo
$ user 9689 8121 0 13:01 pts/1 00:00:00 grep --color=auto mongo
日志在这里
tail /var/log/mongodb/mongodb.log
Fri Dec 10 11:24:35 [conn4] end connection 127.0.0.1:54217
Fri Dec 10 11:25:35 [initandlisten] connection accepted from 127.0.0.1:54229 #5
Fri Dec 10 11:26:25 [initandlisten] connection accepted from 127.0.0.1:54243 #6
Fri Dec 10 11:26:30 [conn6] end connection 127.0.0.1:54243
Fri Dec 10 11:30:13 got kill or ctrl c or hup signal 15 (Terminated), will terminate after current cmd ends
Fri Dec 10 11:30:13 [interruptThread] now exiting
Fri Dec 10 11:30:13 dbexit:
Fri Dec 10 11:30:13 [interruptThread] shutdown: going to close listening sockets...
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 5
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 6
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 7
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 8
Fri Dec 10 11:30:13 [interruptThread] shutdown: going to flush oplog...
Fri Dec 10 11:30:13 [interruptThread] shutdown: going to close sockets...
Fri Dec 10 11:30:13 [interruptThread] shutdown: waiting for fs preallocator...
Fri Dec 10 11:30:13 [interruptThread] shutdown: closing all files...
Fri Dec 10 11:30:13 closeAllFiles() finished
Fri Dec 10 11:30:13 [interruptThread] shutdown: removing fs lock...
Fri Dec 10 11:30:13 dbexit: really exiting now
目前,我只是暂时通过手动创建进程来运行Mongo的命令。
$ sudo mongod -f /etc/mongodb.conf
有任何想法吗? 还是有人通过更新管理器更新了Mongo-stable?
编辑:
这个mongodb版本是v1.6.5,看起来mongo团队将其发布为稳定版并带有一个bug。他们在v1.7.4立即修复了它。您可以查看重要优先级问题。