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

前端 未结 28 1661
执念已碎
执念已碎 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条回答
  •  孤街浪徒
    2020-11-29 15:11

    On a Fedora 18 with Mongo 2.2.4 instance I was able to get around a similar error by disabling SELinux by calling setenforce 0 as root.

    BTW, this was a corporate environment, not an Amazon EC2 instance, but the symptoms were similar.

提交回复
热议问题