MongoDB is not working

I installed mongodb from this below help .

But when i checked status , it is inactive .

I used below commands to make it active . but changed

$ systemctl daemon-reload
$ sudo systemctl enable mongodb
$ sudo systemctl start mongodb

How i can make it functional ? Please help

3 Replies

Please share the entire output from the status command, it says "failed" for a reason.

Hey there.

So I did a little bit of research, you might also want to check your mongodb logs for more information as well with tail -n 30 /var/log/mongodb/mongod.log. That might give you a little more information about specifically what is happening.

It's likely what you are seeing is a permissions error. This Stack Overflow Answer might help point you in the right direction.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct