首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

mongodb 1.8.2 windows service 起动失败解决

2012-08-25 
mongodb 1.8.2windows service 启动失败解决服务启动报错: error2: system can not find the file specifi

mongodb 1.8.2 windows service 启动失败解决
服务启动报错: error2: system can not find the file specified.

solution:
安装服务的时候, 你需要用 mongod.exe的 full path

C:\mongodb-win32-i386-1.8.2\bin\mongod.exe --logpath c:\mongo
db\logs\mongo.log --dbpath c:\mongodb\data\db --directoryperdb --install

to remove service

C:\mongodb-win32-i386-1.8.2\bin\mongod.exe --logpath c:\mongo
db\logs\mongo.log --dbpath c:\mongodb\data\db --directoryperdb --remove

and re open windows service windows, the original service will gone.

另外,use 1.8.2 is better than 1.8.1, I have issue when install 1.8.1


新增加:

发现在windows 下面,最简单就是自己写一个 bat脚本,不要用windows的服务,很不稳定的。

脚本只有两行:

del D:\mongo\data\mongod.lock
mongod.exe --logpath d:\mongo\logs --logappend --dbpath d:\mongo\data

热点排行