Mongodb shell mongo: Only one usage of each socket address (protocol/network address/port) is normally permitted. for socket: 0.0.0.0:27017

后端 未结 3 787
走了就别回头了
走了就别回头了 2021-02-05 14:56

It was fine 2 days ago, Now mongod does not work. Even echo ps -A | grep mongo printed nothing, yet it warns about error: \"Only one usage of each sock

3条回答
  •  [愿得一人]
    2021-02-05 15:24

    try to start mongo on a different port: http://docs.mongodb.org/manual/reference/mongod/#cmdoption-mongod--port

    to be sure what port you can use, execute the command Sriukanth Venugopalan mentioned, it will list the current ports being used.

    Regards, Moacy

提交回复
热议问题