Answer the question
In order to leave comments, you need to log in
Why can't he see mongodb commands?
I install mongo on Debian 7 with four commands:
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
echo "deb repo.mongodb.org/apt/debian wheezy/mongodb-org/3.2 main " | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
apt-get update
apt-get install -y mongodb-org
We look, everything seems to be installed:
mongo
MongoDB shell version: 3.2.6
connecting to: test
Files in place:
/etc/init.d/mongod restart
/var/log/mongodb/mongod.log
/etc/mongod.conf
Further oddities:
mongostat command works, but mongotop outputs:
2016-05-02T00:21:30.474 -0400 E QUERY [thread1] ReferenceError: mongotop is not defined :
@(shell):1:1
The show dbs command says:
-bash: show: command not found
The instructions say:
If you have added the /bin to the PATH environment variable, you can just type mongo instead of ./bin/mongo.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question