I’ve updated the config file so that dbpath goes to /var/mongodb/db. My config file only includes storage: and net: (where the two IP addresses and port 27000 were specified).
I can run MongoD with no issue, but I cannot run Mongo with the mongo command, and the validate command returns this message: “Client experienced a timeout when connecting to the database - check that mongod is running on the correct port, and that your user was created with the correct settings.”
This is the message that I get when I run Mongo :
MongoDB shell version v3.6.16
connecting to: mongodb://127.0.0.1:27017/?gssapiServiceName=mongodb
2019-12-24T18:22:21.305+0000 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2019-12-24T18:22:21.305+0000 E QUERY [thread1] Error: couldn’t connect to server 127.0.0.1:27017, connection attempt failed :
exception: connect failed