Unable to start MongoDB. ERROR: addr already in use

后端 未结 3 824
北恋
北恋 2020-12-31 10:17

I tried running MongoDB in local server with mongod command and it failed to run. The error:

mongod --help for help and startup options
Sat          


        
相关标签:
3条回答
  • 2020-12-31 10:51

    Try this:

    sudo service mongodb stop
    
    sudo mongod
    
    0 讨论(0)
  • 2020-12-31 10:56

    you already have a process running

    killall mongod

    should kill the other process, if you have another kind of process bound to that port you could find it with netstat | grep 27017

    0 讨论(0)
  • 2020-12-31 10:56

    some version is:

    sudo service mongod stop
    
    mongod: mongo damon
    
    0 讨论(0)
提交回复
热议问题