
Show iptable rules line numbers sudo iptables -L -line-numbers If the problem is related to a remote access, here is the solution for anyone who has the problem Start a mongo shell on the same host machine as the mongod mongo -host 127.0.0.1:27017 Verify that MongoDB has started successfully sudo chkconfig mongod on Restart MongoDB sudo service mongod restart So, in place sudo service mongo stop it should be the below mention commandĪs MongoDB documented Here Some of basic procedure to check MongoDB services in RHEL is as mention below: And mongod is server, which handles data requests, manages data access, and performs background management operations. It handles data requests, manages data access, and performs background management operations.Īs simple language we can say that mongo is shell interface for MongoDB. mongo also provides a fully functional JavaScript environment for use with a MongoDB.Īnd mongod is the primary daemon process for the MongoDB system. Sudo service mongo stop Īs MongoDB BOL mongo is an interactive JavaScript shell interface to MongoDB, which provides a powerful interface for systems administrators as well as a way for developers to test queries and operations directly with the database.

Then i tried kill - 2 īut after this command #mongo stopped working and getting the above error. I tried to stop MongoDB and did the following Jul 25 07:45:32 system-test systemd: rvice: Failed with result 'exit-code'. Jul 25 07:45:32 system-test systemd: rvice: Unit entered failed state. Jul 25 07:45:32 system-test systemd: rvice: Main process exited, code=exited, status=14/n/a

Jul 25 07:45:32 system-test systemd: Started High-performance, schema-free document-oriented database.

Process: 1721 ExecStart=/usr/bin/mongod -quiet -config /etc/nf (code=exited, status=14)

Loaded: loaded (/etc/systemd/system/rvice disabled vendor preset: enabled)Īctive: failed (Result: exit-code) since Tue 07:45:32 UTC 1min 8s ago rvice - High-performance, schema-free document-oriented database.T07:31:28.530+0000 E QUERY Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed connect I tried to see the status I get this: sudo service mongodb status T07:31:28.528+0000 W NETWORK Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: errno:111 Connection refused
