Install mongodb through the online installation method, then execute brew update, and then execute brew install mongodb; an error is reported at this time:
Error: You must `brew link makedepend` before mongodb can be installed
2. When directly searching for the mongodb shell, the following error is reported:
MongoDB shell version v3.4.2
connecting to: mongodb://127.0.0.1:27017
2017-04-18T18:51:28.415+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017, in(checking socket for error after poll), reason: Connection refused
2017-04-18T18:51:28.417+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...148 completed.
3. Dear friends, how should I uninstall and then reinstall? Or how can I solve the above problem without uninstalling it? Do you guys have any better installation tutorials? My computer is a Mac system. Please provide me with a link and guidance~~~ I’m very grateful
Just run this
Reinstall after running
Isn’t it good to install docker? ?
No thanks GG