Question

Mongo not starting HELP

so when i d systemctl status mongod it says fialed. but when i do systemctl status mongodb it says active.

What is the difference between the 2?How can I fix this issue? I really don’t understand what i did wrong.

This is what my nmap scan says though.

nmap -sS -p 4000,27017,80,22,443 157.245.5.153
Starting Nmap 7.92 ( https://nmap.org ) at 2022-07-23 13:52 Eastern Daylight Time
Nmap scan report for 157.245.5.153
Host is up (0.0064s latency).

PORT      STATE  SERVICE
22/tcp    open   ssh
80/tcp    open   http
443/tcp   closed https
4000/tcp  open   remoteanything
27017/tcp open   mongod;

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

It sounds like that when you try to start the MonogoDB service with systemctl start mongodb it starts for a second but then crashes right after that, so when you check the status it would already have failed.

I could suggest starting by checking your MongoDB log for more information:

/var/log/mongodb/mongod.log

Feel free to share the output of the logs here.

You can also use the following command for some more information:

journalctl -xe 

Let me know how it goes!

Best,

Bobby