Mongodb not working on Ubuntu 16.04

前端 未结 11 930
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-28 15:51

I installed mongodb following this tutorial here, no errors during the installation but when I try to start the mongod server using this command sudo systemctl start m

11条回答
  •  感情败类
    2020-12-28 16:31

    Recently i have solved the same issue. I was unable to find the solution on googled, but i get come clues to, how get figure it out. In my case this issue was related to mongodb-27017.sock file.

    Failed to unlink socket file /tmp/mongodb-27017.sock errno:1 Operation not permitted
    

    So i have changed the permission of /tmp/mongodb-27017.sock file to default mongodb user.

    sudo chown mongodb /tmp/mongodb-27017.sock
    sudo chgrp mongodb /tmp/mongodb-27017.sock
    

    After this sudo systemctl status mongodb working fine and mongodb is started.

提交回复
热议问题