Reputation: 689
I have installed mongodb in past and now i didn't know how to run mongodb . When i run installed command it said it was already installed and below is the path(/usr/local/Cellar/mongodb/2.6.3). and when i run mongodb command in terminal is says (:mongod: command not found.).
Upvotes: 0
Views: 80
Reputation: 4435
You can verify whether mongod is running on port 27017.
Ensure the location of the binaries is in the PATH variable. So you need to set path where you have installed mongodb.
You can find more detailed procedure here
Upvotes: 0
Reputation: 42063
You can start MongoDB with this command:
brew services start mongodb
You can then access the databases with the mongo
command.
Upvotes: 0
Reputation:
If you are using Ubuntu then try this command , and post your result here . sudo service mongod start
Upvotes: 1