想要启动mongodb但遇到这种错误'mongo'不能被识别为内部或外部命令、可操作的程序或批处理文件' [duplicate]

pzfprimi  于 2022-12-12  发布在  Go
关注(0)|答案(1)|浏览(147)

此问题在此处已有答案

mongo.exe not installed in Version 6.0.0(6个答案)
7天前关闭。
我尝试在cmd中启动mongo:

C:\Users\Vishal Bramhankar>mongo

'mongo' is not recognized as an internal or external command,
operable program or batch file.

我错过了什么?

xqk2d5yq

xqk2d5yq1#

After MongoDB version 6.0 and onwards we need to install MongoDB Shell separately.

  1. Configure below path in envarinment variables
    C:\Program Files\mongosh-1.6.1-win32-x64\bin
  2. Close your cmd and open the new cmd again and run below command:
    C:\Users\Vishal Bramhankar>mongosh
  3. Run below one for knowing DBs:
    test> shows dbs
    MongoDB shell installation:

相关问题