Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

where is default installation directory for mongodb

Tags:

linux

mongodb

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?

like image 208
Raghu Avatar asked Jul 09 '17 12:07

Raghu


People also ask

Where is MongoDB installation directory?

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.

What is default path of the MongoDB?

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 .

Where is MongoDB installed Linux?

MongoDB stores data in db folder within data folder.

How can I tell if MongoDB is installed on my computer?

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.


1 Answers

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'
like image 177
magM Avatar answered Sep 28 '22 15:09

magM