Ubuntu16版本中安装MongoDB
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-linux/
//授权
https://docs.mongodb.com/manual/reference/program/mongod/#bin.mongod
ubuntu中第一次启动MongoDB报错* Attempted to create a lock file on a read-only directory: /data/db, terminating
错误产生的原因是权限问题,用下述命令解决:
sudo chown -R 用户名 /data/db_webcrawler