码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2017-12-22 22:52:05      阅读:371      评论:0      收藏:0      [点我收藏+]

标签:data   dir   details   .net   user   net   gpo   listen   temp   

启动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: /data/db, terminating

标签:data   dir   details   .net   user   net   gpo   listen   temp   

原文地址:http://www.cnblogs.com/hizf/p/8087724.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!