日期:2014-05-16  浏览次数:20396 次

将mongodb加入系统服务及其开启服务Error 193: 0xc1解决方法
1、cd到mongodb的bin目录下
2、输入命令
mongod --logpath mongodb路径/logs/mongodb.log --logappend --dbpath mongodb目录/data --directoryperdb --serviceName MongoDB --install


如果出现
all output going to : mongodb 路径/logs/mongodb.log
Creating service MongoDB.
Service cretion successful
Service can be started from the command line via 'net start "MongoDB"'

表示成功

PS:这个时候打开服务找到MongoDB 然后启动,如果报错 Error 193: 0xc1 只要删除mongodb/bin目录下的mongod即可(改文件隐藏,需要显示隐藏文件)