Open ytxbnahn opened 6 years ago
参考链接
exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /data/db, terminating
sudo chown -R id -un /data/db
id -un
参考链接
安装mongod
问题
exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only directory: /data/db, terminating
解决
sudo chown -R
id -un
/data/db