I’m a student trying to run mongodb on my Mac High Sierra 10.13.6. My mongodb version is v4.4.21. When I try to run mongo/mongod I get the following errors for each.
When I try to run mongo this is the error I get:
Book-Pro:~ aerodynamictapeworm$mongo
MongoDB shell version V4.4.21
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName
=mongodb
Error: couldn’t connect to server 127.0.0.1:27017,
connection attempt failed: Socketexception: error connecting to 127.0.0.1:27017 :: caused by :: connection refused:
connect@src/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed exiting with code
When I try to run mongod, I get a very long list of processes, as if it’s starting up, but then I get the following message, and it shuts the program down again (snippet):
Here is the configuration:
systemLog:
destination: file path: /us/local/var/log/mongodb/mongo. log logAppend: true
storage:
dbPath: /usr/local/var/mongodb
net:
bindIp: 127.0.0.1, ::1
IPv6: true