MongoDB无法注册windows服务问题解决 Error connecting to the Service Control Manager: 拒绝访问 Mongodb M

发现在mongodb.log里出现  2017-07-07T17:01:55.339+0800 I CONTROL  [main] Error connecting to the Service Control Manager: 拒绝访问。 (5) 错误

1.检查mongodb.conf配置内容是否有误.

2.cmd需要以管理员方式启动(c盘system32下cmd.exe).

3.执行mongod.exe --bind_ip 127.0.0.1 --config "G:\devenv\MongoDB\mongo.conf" --serviceName "Mongodb" --serviceDisplayName "MongoDB" --install  记得加上或在conf内配置服务名

猜你喜欢

转载自blog.csdn.net/java_xth/article/details/84936042