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

前端 未结 28 1634
执念已碎
执念已碎 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:10

    This is what I did to fix the problem:

    $sudo mkdir -p /data/db

    $export PATH=/usr/local/Cellar/mongodb/3.0.7/bin:$PATH

    $sudo chown -R id -u /data/db

    and then to start mongo...

    $mongod

提交回复
热议问题