SocketException: Address already in use MONGODB

前端 未结 11 1181
隐瞒了意图╮
隐瞒了意图╮ 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 08:59

    You already have a process running in the port 27017 which is used by mongodb. So either you need to stop the process in that port or try with different port number.

    Try mongod --port 27018

    You can change the port number of your choice.

    EDIT:

    You can also just stop all the running instances of mongo server using sudo killall mongod as mentioned by @Dassi Orleando in the comments. And run mongod

提交回复
热议问题