简体   繁体   中英

mongosh is a valid command but mongo is not found

I have mongodb community 6.0.0 installed.

The command mongo is not found.

The command mongosh is working.

mongosh --version
1.5.4

According to official document ,

The mongo shell has been deprecated in MongoDB v5.0. The replacement is mongosh .

As you are using MongoDB v6.0, mongo is deprecated in your version.

You need to add the path to "mongo" to your terminal shell.

export PATH=$PATH:/usr/local/mongodb/bin

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM