Unable to create/open lock file: /data/mongod.lock errno:13 Permission denied

前端 未结 28 1636
执念已碎
执念已碎 2020-11-29 14:39

How to I get mongo to use a mounted drive on ec2? I really do not understand. I attached a volume on ec2 formatted the drive as root and start as root and yet as root I ca

28条回答
  •  旧时难觅i
    2020-11-29 15:14

    I installed mongodb with EBS on an EC2 with Ubuntu 14.04 following this tutorial:

    http://docs.mongodb.org/ecosystem/platforms/amazon-ec2/

    But instead of the suggested chown I did:

    sudo chown -R mongodb:mongodb /data /log /journal
    

    To fix the problem

提交回复
热议问题