'Failed to unlink socket file" error in MongoDB 3.0

后端 未结 8 1570
独厮守ぢ
独厮守ぢ 2020-11-28 05:14

I am new to MongoDB. I am trying to install MongoDb 3.0 on Ubuntu 13.0 LTS, which is a VM on Windows 7 Host. I have installed MongoDB successfully (packages etc.), but when

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-28 06:01

    This issue occurs when you use the command

    mongod
    

    Before using the command

    sudo service mongod start
    

    To fix the issue, either:

    Set appropriate permissions on the file:

    /tmp/mongodb-27017.sock
    

    OR

    Remove the file

    /tmp/mongodb-27017.sock
    

    Run

    sudo service mongod start && mongod
    

提交回复
热议问题