openFile(/opt/xxx/logs/xxxxx.log,true) call failed. java.io.FileNotFoundException: /usr/xx/logs/xxxx.log(Permission denied)
描述 sudo chown -R user:staff namespace user[用户角色] staff [user的组] namespace [文件夹]
staff : linux ll命令查看 用户
解决: sudo chown -R momo:staff opt/ssl
或者 sudo chown -R $(whoami) /usr/local/
mac 容易报文件权限过低,提升权限
Failed to create parent directories for [/opt/log/mp.log]
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file] - openFile(/opt/log/mp.log,true)
解决:sudo chmod -R 777 /opt
openFile xx failed. java.io.FileNotFoundException: /usr/xx/logs/xxxx.log(Permission denied)
最新推荐文章于 2024-05-31 15:06:05 发布