Error connecting to the Service Control Manager: 拒绝访问 Mongodb问题-解决
Posted carrot5032
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Error connecting to the Service Control Manager: 拒绝访问 Mongodb问题-解决相关的知识,希望对你有一定的参考价值。
发现在mongodb.log里出现 2017-07-07T17:01:55.339+0800 I CONTROL [main] Error connecting to the Service Control Manager: 拒绝访问。 (5) 错误
而且在windows的服务下 没有找到Mongodb
原因 cmd没有用管理员权限
到C:\\Windows\\System32 目录下 右击cmd 选择已管理员身份运行
再 cd C:\\Program Files\\MongoDB\\Server\\3.4\\bin
执行 :
mongod.exe --bind_ip 127.0.0.1 --logpath "C:\\data\\dbConf\\mongodb.log"--logappend --dbpath "C:\\data\\db" --serviceName "Mongodb" --serviceDisplayName "MongoDB" --install
就不会再报错了
cmd下进入 services.msc
找到,,并启动就可以了
以上是关于Error connecting to the Service Control Manager: 拒绝访问 Mongodb问题-解决的主要内容,如果未能解决你的问题,请参考以下文章
Ionic App 启动时报Application Error - The connection to the server was unsuccessful
mysql错误 MacERR_WHEN_INSERT_TO_DB Error:Connection lost: The server closed the connection.
kubectl error: The connection to the server localhost:8080 was refused
The connection to adb is down, and a severe error has occured.
Name Error Connection “:1.33“ is not allowed to own the service “x“ due to security policies in the
[Android]The connection to adb is down, and a severe error has occured.