Mongodb not working on Ubuntu 16.04

前端 未结 11 945
佛祖请我去吃肉
佛祖请我去吃肉 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:27

    because the permission setting

    chown -R mongodb:mongodb /var/lib/mongodb
    chown mongodb:mongodb /tmp/mongodb-27017.sock
    

    if this worked for me after reinstalling mongodb. I have created manually

    sudo mkdir /var/lib/mongodb
    sudo mkdir /var/log/mongodb
    

    and changed owner for both

    sudo chown -R mongodb:mongodb /var/lib/mongodb
    chown -R mongodb:mongodb /var/log/mongodb
    

提交回复
热议问题