
- MONGODB INSTALL BUT MONGO COMMAND NOT WORKING HOW TO
- MONGODB INSTALL BUT MONGO COMMAND NOT WORKING UPDATE
It will create a new document when our updated query is not matched with the existing document.
MONGODB INSTALL BUT MONGO COMMAND NOT WORKING UPDATE
MONGODB INSTALL BUT MONGO COMMAND NOT WORKING HOW TO
Here is how to delete a rule using the type ( input in out case ) and line number ( 7 in out case ) sudo iptables -D INPUT 7 The problem is caused by the rule 7 REJECT all - anywhere anywhere reject-with icmp-host-prohibitedĭelete it but keep security team informed about this operation ġ ACCEPT all - anywhere anywhere ctstate RELATED,ESTABLISHEDĤ INPUT_ZONES_SOURCE all - anywhere anywhereĦ DROP all - anywhere anywhere ctstate INVALIDħ REJECT all - anywhere anywhere reject-with icmp-host-prohibitedĨ ACCEPT tcp - 172.16.84.102 anywhere tcp dpt:27017 state NEW,ESTABLISHEDģ FORWARD_direct all - anywhere anywhereĤ FORWARD_IN_ZONES_SOURCE all - anywhere anywhereĥ FORWARD_IN_ZONES all - anywhere anywhereĦ FORWARD_OUT_ZONES_SOURCE all - anywhere anywhereħ FORWARD_OUT_ZONES all - anywhere anywhereĨ DROP all - anywhere anywhere ctstate INVALIDĩ REJECT all - anywhere anywhere reject-with icmp-host-prohibited 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
