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:
(编辑:鄂州站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- Ubuntu LTS 系统学习使用体会和实用工具软件汇总 6.04 8.04
- Ubuntu安装PHP和PHP Nginx配置方法
- 在Ubuntu上安装Cinnamon Desktop
- 在Ubuntu14.04上安装GMT5
- caffe在ubuntu16.04配置流程
- ubuntu玩android的hello world
- 在Ubuntu上使用带有Python的Access数据库(.mdb)[复制]
- [第二步]在NanoPi NEO UbuntuCore下安装homebridge(相关错误
- ubuntu16.10安装docker17.03.0-ce并配置国内源和加速器
- Ubuntu Server下MySql数据库备份脚本代码