Answer the question
In order to leave comments, you need to log in
How to install mongodb on ubuntu?
I read several lessons, got confused in the next one. There are different packages - mongodb and mongodb-org. The older tutorials suggest installing mongodb-org and then running sudo systemctl start mongod , while the newer tutorials suggest installing mongodb and running sudo systemctl start mongodb .
In general, the second option is working, the database starts up, everything is fine. But when it comes to security, all the tutorials talk about setting up the mongod.conf file , which is needed for the mongod process, which, in my case, is not there. So far, I haven't found any up-to-date information about setting up Mongi. The mongodb.conf file is too different from what is written in security tutorials.
Now I just want to solve the issue of access with authorization, which was solved by the following lines in the mongod.conf file:
security:
authorization: "enabled"
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