当我使用 mongosh 命令从 cmd 访问 Mongodb 时,它返回访问被拒绝

问题描述 投票:0回答:1

我在 Windows 11 计算机上安装了 MongoDB,但是当我在 cmd 中运行 mongosh 时,它返回访问被拒绝

>mongosh access Denied

[this is what appears when i run the command](https://i.stack.imgur.com/bSqCS.png)

我尝试卸载并重新安装并将其添加到环境变量中。

C:\Program Files\MongoDB\Server\7.0\bin

mongodb mongo-shell
1个回答
0
投票

您可以通过启用 mongosh exe 文件的兼容模式来运行它。查看此帖子以获取详细答案:https://answers.microsoft.com/en-us/windows/forum/all/this-app-cant-run-on-your-pc/f94db755-9416-470a-9532- de9dc6ec53d2

© www.soinside.com 2019 - 2024. All rights reserved.