vinothvetrivel
vinothvetrivel

Reputation: 109

Getting error while starting mongo shell

I created a bin folder in user account and paste mongo inside this folder. I successfully created conf and log file also and my server also running. I checked that by using grep command. But if i try to use mongo shell it says"Command not found"

Upvotes: 0

Views: 2777

Answers (1)

Tad Marshall
Tad Marshall

Reputation: 1363

If this is Linux or another Unix-like OS and you are in the directory where you put the mongo executable, you need to type "./mongo" to run the shell. This is not MongoDB specific, it's just the way Unix-like systems work. If you are in a different directory, specify the path to the mongo executable (e.g. "~/bin/mongo") or add "~/bin" to your PATH environment variable.

Upvotes: 1

Related Questions