SocketException: Address already in use MONGODB

前端 未结 11 1166
隐瞒了意图╮
隐瞒了意图╮ 2020-12-07 08:42

i found this error when trying to run mongodb. I install it via homebrew. Please assist

Agungs-MacBook-Pro:~ agungmahaputra$ mongod
2017-12-26T15:31:15.911+0         


        
11条回答
  •  攒了一身酷
    2020-12-07 09:22

    After running this commands below:

    sudo lsof -iTCP -sTCP:LISTEN -n -P
    

    Search for mongod COMMAND and its PID and type,

    sudo kill 
    

    And restarting mongod, it still fails with the same error "SocketException: Address already in use MONGODB".

    Server was restarted yesterday and then this happened.

提交回复
热议问题