I installed mongodb by following the instructions from its site. To open the shell I must go to the installation directory of mongodb, and then type
./bin/mongo
I don't know the default directory. where might it be?
Install MongoDB On Windows Now install the downloaded file, by default, it will be installed in the folder C:\Program Files\. MongoDB requires a data folder to store its files. The default location for the MongoDB data directory is c:\data\db.
By default, MongoDB listens for connections from clients on port 27017 , and stores data in the /data/db directory. On Windows, this path is on the drive from which you start MongoDB. For example, if you do not specify a --dbpath , starting a MongoDB server on the C:\ drive stores all data files in C:\data\db .
MongoDB stores data in db folder within data folder.
Open the command prompt and type "cd c:\program files\mongodb\server\your version\bin". After you enter the bin folder type "mongo start". If you get either a successful connection or failed one it means it's installed at least.
Late to the party but it could help others : I installed mongodb 3.4.10 for Ubuntu 16.4
I found the mongo file to launch the shell at
/usr/bin/mongo
I found it using the following commands
sudo updatedb
locate -b '\mongo'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With