The mongodb installation encounters difficulties. How to uninstall and reinstall?
天蓬老师
天蓬老师 2017-05-02 09:26:22
0
1
897
  1. 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

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
習慣沉默

Just run this

Reinstall after running

brew link makedepend

Isn’t it good to install docker? ?

No thanks GG

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template