得到“拒绝访问".当我尝试在Windows Server 2008中安装64位mongodb时 [英] Got "Access is denied" when I tried to install 64-bit mongodb in Windows server 2008
问题描述
我要做的就是在脚本下面运行: D:\ Tools \ MongoDb \ bin \ mongod.exe --dbpath D:\ MongoDb \ data \
All I did is to run below script: D:\Tools\MongoDb\bin\mongod.exe --dbpath D:\MongoDb\data\
然后我得到了例外: 连接到服务控制管理中心时出错:访问被拒绝. (5)
Then I got exception: Error connecting to the service Control Manager: Access is denied. (5)
我使用管理员帐户进行操作,我已经创建了与脚本相关的文件夹.
I was using administrator account to operate this, I already created folders related to the script.
当我在32位Windows Server 2003中安装32位mongodb时,我没有遇到这样的问题.
And I didn't experience issue like this when I installed 32-bit mongodb in 32-bit Windows Server 2003.
我对此表示感谢!
推荐答案
您需要使用Run as Administrator
选项打开的命令提示符中安装它
You need to install it from the command prompt that you have opened with the Run as Administrator
option
这篇关于得到“拒绝访问".当我尝试在Windows Server 2008中安装64位mongodb时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!