q松_松q

关注

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

q松_松q

关注

阅读 229

2022-01-04

方法1

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

增加权限

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

方法2

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

setenforce 0

相关推荐

SDKB英文

exception in initAndListen: 98 Unable to lock file:

SDKB英文 67 0 0

m逆光生长

mkdir: can't create directory 'test': Read-only file system

m逆光生长 43 0 0

热爱生活的我一雷广琴

bash: cannot create temp file for here-document: Read-only file system

热爱生活的我一雷广琴 169 0 0

小编

macOs :Read-only file system 处理

小编 140 0 0

一叶随风_c94d

A read-only user or a user in a read-only database is not permitted to disable read-only mode

一叶随风_c94d 237 0 0

快乐码农Alan007

安卓EROFS (Read-only file system)的解决

快乐码农Alan007 252 0 0

鱼板番茄

Uncaught TypeError: "element" is read-only

鱼板番茄 19 0 0

兽怪海北

-bash: /root/.ssh/authorized_keys: Read-only file system

兽怪海北 10 0 0

Aliven888

Write operations are not allowed in read-only mode

Aliven888 88 0 0

_铁马冰河_

mac环境Qt Creator报错:Warning: You are changing a read-only file.

_铁马冰河_ 23 0 0

精彩评论(0)

0 0 举报