0
点赞
收藏
分享

微信扫一扫

exception in initAndListen: IllegalOperation: Attempted to create a lock file on a read-only direct

q松_松q 2022-01-04 阅读 229

方法1

查看文件是否有对应的权限

增加权限

chown -R mongod:mongod 目录名
chmod -R 777 目录名

方法2

mongodb不使用默认的文件目录和端口时,那么在启动之前,我们需要将 selinux 的状态设置为 Permissive

setenforce 0
举报

相关推荐

0 条评论