【错误记录】mac启动springboot,使用日志报错:Failed to create parent directories for
作者:互联网
Failed to create parent directories for /opt/logs/nftscan-processor/info.log
Failed to create parent directories for /opt/logs/nftscan-processor/info.log
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file_info] - openFile(/opt/logs/nftscan-processor/info.log,true) call failed. java.io.FileNotFoundException: /opt/logs/nftscan-processor/info.log (No such file or directory)
解决方案:
在你电脑上的父路径,也就是最顶层
cd /
在这个目录下创建目录 这里要使用sudo
//opt目录下
sudo mkdir logs
cd logs
sudo mkdir nftscan-processor
cd nftscan-processor
创建完成后在nftscan-processor 目录下创建log文件
sudo touch info.log
将文件权限修改
sudo chmod 777 info.log
搞定
标签:info,springboot,parent,sudo,logs,nftscan,报错,processor,log 来源: https://blog.csdn.net/Frlyh/article/details/122086237