

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
