ubuntu下配置mongodb 错误
来源:互联网 发布:注射水银 知乎 编辑:程序博客网 时间:2024/06/06 00:16
配置步骤
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
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:
sudo chmod -R go+w /data/db
or this, which will make the directory owned by you:sudo chown -R $USER /data/db
- ubuntu下配置mongodb 错误
- ubuntu 环境下配置mongodb php扩展
- ubuntu下搭建配置nodejs+mongodb环境
- Ubuntu 系统下 mongodb 安装和配置
- Ubuntu下mongodb的安装与配置
- ubuntu下mongodb安装与配置
- Ubuntu下Mongodb的配置和使用
- ubuntu下minicom 配置及错误解决
- ubuntu 下 nginx+php+mongodb+memcache安装配置
- Ubuntu 10.10 下安装与配置 MongoDB 1.6.5
- Mongodb在Ubuntu下的安装配置(单机)
- Mongodb在ubuntu下的安装和启动和配置
- WIN10下安装配置MongoDB流程及常见错误!
- mongodb repair(ubuntu下)
- Ubuntu 下安装MongoDB
- Ubuntu下安装MongoDB
- Ubuntu 下安装MongoDB
- Ubuntu 下安装Mongodb
- poj 1274(二分图最大匹配)
- HDU3062 Party (2-sat)
- PHP常用正则(手机号、座机、邮箱、身份证及手机号截取)
- 使用vue + less 实现简单换肤功能
- Java练习题11
- ubuntu下配置mongodb 错误
- HTML笔记
- 机器学习算法之梯度下降法
- MySQL之为表格添加行号
- [欧拉图总结]
- 随机森林算法构建岩石水雷分类器
- radio 单选 点2下取消选中!
- 【图像处理】MATLAB:图像噪声
- RoCE与RDMA技术