抱歉,评论被关闭
linux 下mongodb 启动错误!
第一次启动正常,
接着,我修改mongodb的权限
然后,我关闭了mongod,重新启动
就出现下面的错误:
old lock file: /usr/local/mongodb/data/mongod.lock. probably means unclean shutdown
recommend removing file and running –repair
see: http://dochub.mongodb.org/core/repair for more information
*************
Wed Jan 5 11:43:52 exception in initAndListen std::exception: old lock file, terminating
Wed Jan 5 11:43:52 dbexit:
Wed Jan 5 11:43:52 shutdown: going to close listening sockets…
Wed Jan 5 11:43:52 shutdown: going to flush oplog…
Wed Jan 5 11:43:52 shutdown: going to close sockets…
Wed Jan 5 11:43:52 shutdown: waiting for fs preallocator…
Wed Jan 5 11:43:52 shutdown: closing all files…
Wed Jan 5 11:43:52 closeAllFiles() finished
Wed Jan 5 11:43:52 dbexit: really exiting now
解决办法:估计是权限的问题,没有去测试,有空,再找根本的原因,目前想到解决办法是删除 这个文件( /usr/local/mongodb/data/mongod.lock)
接着,重新启动:/usr/local/mongodb/bin/mongod –fork –dbpath=/usr/local/mongodb/data/ –logpath=/usr/local/mongodb/logs/mongod.log –logappend
本文出自 “凹凸曼” 博客,请务必保留此出处http://www.apoyl.com/?p=77
这几天,弄公司的杂七杂八的,
上述为聚合系统进展视图,呵呵!感觉还行!
今天在那里遇到一个,严重的bug
再做mysql转化为mongodb 未发觉的
转化的id类型不对!
接着又想多一会儿,才修复好了哈!嘿嘿!
这个项目里,加入了smarty+php自动加载类!
娃哈哈,下班了!