我刚刚从 AWS 回来Redhat 6.5 64-bit
并做了以下事情:
- 禁用 SELinux
- 禁用 iptables
- 安全组中打开的所有端口
- 重新启动
然后我就按照以下两条说明进行操作:
- http://docs.mongodb.org/manual/tutorial/install-mongodb-on-red-hat-centos-or-fedora-linux/
- http://docs.mongodb.org/manual/tutorial/install-mongodb-enterprise-on-red-hat-or-centos/
再次全新安装后,我分别尝试了这两个链接。
这是版本:
[[email protected] ~]# mongod --version
db version v2.6.4
2014-08-19T04:35:58.234-0400 git version: 3a830be0eb92d772aa855ebb711ac91d658ee910
那么问题来了:
[[email protected] ~]# service mongod start
Starting mongod: [FAILED]
这是日志:
[[email protected] ~]# tail /var/log/mongodb/mongod.log
2014-08-19T04:30:07.669-0400 [initandlisten] shutdown: going to close sockets...
2014-08-19T04:30:07.669-0400 [initandlisten] shutdown: waiting for fs preallocator...
2014-08-19T04:30:07.669-0400 [initandlisten] shutdown: lock for final commit...
2014-08-19T04:30:07.669-0400 [initandlisten] shutdown: final commit...
2014-08-19T04:30:07.669-0400 [initandlisten] shutdown: closing all files...
2014-08-19T04:30:07.669-0400 [initandlisten] closeAllFiles() finished
2014-08-19T04:30:07.669-0400 [initandlisten] journalCleanup...
2014-08-19T04:30:07.669-0400 [initandlisten] removeJournalFiles
2014-08-19T04:30:07.671-0400 [initandlisten] shutdown: removing fs lock...
2014-08-19T04:30:07.671-0400 [initandlisten] dbexit: really exiting now
这是一个非常干净的安装。
请问发生了什么事。
笔记:
[[email protected] ~]# ll /var/lib/mongo/mongod.lock
-rwxr-xr-x. 1 mongod mongod 0 Aug 19 04:32 /var/lib/mongo/mongod.lock