mongo启动异常-mongodb exception in initAndListen: 7026old lock file, terminating
来源:互联网 发布:java写九九乘法表 编辑:程序博客网 时间:2024/06/05 15:52
刚安装上mongo时, 第一次可以启动成功, 第二次的时候就启动不了, 发现没有启动的时候 data下面多了 mongod.lock文件, 里面有个数字, 正常情况下 关闭mongo时该文件大小应该为 0KB
对应的log信息如下:
2015-10-21T08:15:37.546+0800 [initandlisten] MongoDB starting : pid=796 port=27017 dbpath=D:\tools\mongodb-2.6.11\data 32-bit host=YUFU2015-10-21T08:15:37.546+0800 [initandlisten] 2015-10-21T08:15:37.546+0800 [initandlisten] ** NOTE: This is a 32 bit MongoDB binary.2015-10-21T08:15:37.546+0800 [initandlisten] ** 32 bit builds are limited to less than 2GB of data (or less with --journal).2015-10-21T08:15:37.546+0800 [initandlisten] ** Note that journaling defaults to off for 32 bit and is currently off.2015-10-21T08:15:37.546+0800 [initandlisten] ** See http://dochub.mongodb.org/core/32bit2015-10-21T08:15:37.546+0800 [initandlisten] 2015-10-21T08:15:37.546+0800 [initandlisten] ** NOTE: your operating system version does not support the method that MongoDB2015-10-21T08:15:37.546+0800 [initandlisten] ** uses to detect impending page faults.2015-10-21T08:15:37.546+0800 [initandlisten] ** This may result in slower performance for certain use cases2015-10-21T08:15:37.546+0800 [initandlisten] 2015-10-21T08:15:37.546+0800 [initandlisten] targetMinOS: Windows XP SP32015-10-21T08:15:37.546+0800 [initandlisten] db version v2.6.112015-10-21T08:15:37.546+0800 [initandlisten] git version: d00c1735675c457f75a12d530bee85421f0c55482015-10-21T08:15:37.546+0800 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_492015-10-21T08:15:37.546+0800 [initandlisten] allocator: system2015-10-21T08:15:37.546+0800 [initandlisten] options: { storage: { dbPath: "D:\tools\mongodb-2.6.11\data" }, systemLog: { destination: "file", path: "D:\tools\mongodb-2.6.11\logs\mongodb" } }<span style="font-family:Microsoft YaHei;font-size:14px;color:#ff0000;">2015-10-21T08:15:37.546+0800 [initandlisten] exception in initAndListen: 12596 old lock file, terminating</span>2015-10-21T08:15:37.546+0800 [initandlisten] dbexit: 2015-10-21T08:15:37.546+0800 [initandlisten] shutdown: going to close listening sockets...2015-10-21T08:15:37.546+0800 [initandlisten] shutdown: going to flush diaglog...2015-10-21T08:15:37.546+0800 [initandlisten] shutdown: going to close sockets...2015-10-21T08:15:37.546+0800 [initandlisten] shutdown: waiting for fs preallocator...2015-10-21T08:15:37.546+0800 [initandlisten] shutdown: closing all files...2015-10-21T08:15:37.546+0800 [initandlisten] closeAllFiles() finished2015-10-21T08:15:37.546+0800 [initandlisten] dbexit: really exiting now
注意加红的的部分: 问题就出现在这个 lock文件上.
解决办法: 删掉lock文件, 在mongo bin 目录下 运行mongod.exe --repair , 然后启动mongo, OK.
0 0
- mongo启动异常-mongodb exception in initAndListen: 7026old lock file, terminating
- mongodb exception in initAndListen: 12596 old lock file, terminating解决方法
- mongodb 错误代码 exception in initAndListen: 12596 old lock file, terminating
- exception in initAndListen: 12596 old lock file, terminating
- exception in initAndListen: 12596 old lock file, terminating
- mongo启动异常-mongodb exception in initAndListen
- [mongoDB]exception in initAndListen: 20 Attempted to create a lock file on a read-only directory:
- linux32位mongodb启动报错【exception in initAndListen 】
- exception in initAndListen: 29 Data directory /data/db not found., terminating
- [initandlisten] exception in initAndListen: 28663 Cannot start server
- MongoDB在windows下出现old lock file
- Java异常:Exception in thread "main" java.lang.ArithmeticException: Non-terminating decimal expansion;
- Java异常:Exception in thread "main" java.lang.ArithmeticException: Non-terminating decimal expansion;
- mongo抛出异常:com.mongodb.MongoException: Lock not granted. Try restarting the transaction 解决方式
- mongo异常关闭无法启动
- 20 Exception异常/File类
- mongodb源码分析(三)mongo的启动
- 为什么mongodb异常关闭后,再启动需要删除mongd.lock文件
- QThread之创建
- Ubuntu 15.10更新源已可用,更新到Ubuntu 15.10的方法
- MFC的API函数大全
- CentOS安装并设置MariaDB
- bad response Not Found 404 (http://ruby.taobao.org/specs.4.8.gz)cocoapods 更新失败
- mongo启动异常-mongodb exception in initAndListen: 7026old lock file, terminating
- C# 获取磁盘空间信息
- PLSQ连接数据库弹出 Dynamic Performance Tables not accessible .....
- 转载 关于CVS本地的文件与服务器的同步状态
- 数据段、代码段、堆栈段、BSS段的区别
- lua c++中的一种回调解决方法
- AsyncTask java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.Void[] 异常
- python函数函数指针用法
- proxool连接池