MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /d

Posted hi

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /d相关的知识,希望对你有一定的参考价值。

启动mongodb遇到的一个问题和解决:

转(http://blog.csdn.net/u012877472/article/details/51001025)

MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db, terminating

 

    sudo chmod -R go+w /data/db
    or this, which will make the directory owned by you:

    sudo chown -R $USER /data/db

 

以上是关于MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /d的主要内容,如果未能解决你的问题,请参考以下文章

Mac启动MongoDB报错:exception in initAndListen: NonExistentPath: Data directory /data/db not found., term

Symfony 没有找到数据库驱动An exception occured in driver: could not find driver

解决 mongodb $in needs an array 问题

thinkphp5.1上传文件报错[0] Exception in Request.php line 1266 上传文件大小超过了最大值!

MongoDB、Windows 7、XAMPP、PHP.ini

将 mongodb.so 添加到 php.ini 后 XAMPP (Apache) 崩溃