How can I run mongdb in Linux mint?

I would like to ask how to start mongodb in linux mint. I tried sudo service mongod start

but it shows error mongod: unrecognized service

. Why is this happening. When I start sudo service in ubuntu Linux there are no such problems. BUt, why isn't it working in Linux mint? Is there a solution for this?

+3


source to share


1 answer


I just installed Mongo DB in LinuxMint Sarah (18) and the following command worked for me:

sudo service mongodb start.

Verifying that this works can be done either by executing the command "from above" or checking the log file in the mongodb folder (instructions in the following link ---> https://docs.mongodb.com/manual/tutorial/install- mongodb-on-ubuntu / # run-mongodb-community-edition )



To stop mongodb, the same command, but typing stop 'sudo service mongodb stop'

In the previous link, both commands are included, but without the "b", perhaps they just made a typing error :)

+1


source







All Articles