首页 > 解决方案 > 使用 mongosh 命令将 MongoDB Atlas 链接到 shell 的问题

问题描述

我不确定如何解决这个问题。我正在尝试链接 MongoDB Atlas 并将集群连接到外壳。我按照说明复制/粘贴mongosh "mongodb+srv://cluster0.gmkap.mongodb.net/myFirstDatabase" --username me到终端中,然后得到 zsh: command not found: mongosh

我安装了自制软件,所以我运行brew install mongosh并得到

==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.```

Anyone can point me in the right direction, it'd be appreciated




标签: mongodbshellhomebrew

解决方案


推荐阅读