ubuntu下配置mongodb 错误
配置步骤 错误 MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db,terminating The problem is that the directory you created,/data/db is owned by and only writable by the root user,but you are running mongod as yourself. There are several ways to resolve this,but ultimately,you must give the directory in question the right permissions. If this is for production,I would advise you to check the docs and think this over carefully – you probably want to take special care. However,if this is just for testing and you just need this to work and get on with it,you could try this,which will make the directory writable by everyone:
(编辑:莱芜站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- Ubuntu14.04编译Allwinner lichee 两个出错解决方法
- OpenStack Error – Index column size too large. The max
- ubuntu – 带有Open vSwitch的LXC
- 如何彻底删除ubuntu上的软件
- 双系统ubuntu安装分区home,boot,root,swap,usr,tmp大小
- Ubuntu 搭建基于Docker的LNMP+Redis的开发环境(图文)
- Ubuntu Server 14.04升级Ubuntu Server 16.04
- ubuntu设置swap(交换内存)
- Ubuntu中卸载Postgresql出错的解决方法
- Ubuntu Desktop 16.04下安装Docker