赞
踩
ERROR in ch.qos.logback.core.rolling.RollingFileAppender - Failed to create parent directories for
idea导入工程后,启动工程,报错
11:35:50,371 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file] - Active log file name: /data/applogs/xxx/xxx-server.log
11:35:50,371 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[file] - File property is set to [/data/applogs/xxx/xxx-server.log]
11:35:50,372 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file] - Failed to create parent directories for [/data/applogs/xxx/xxx-server.log]
11:35:50,373 |-ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file] - openFile(/data/applogs/xxx/xxx-server.log,true) call failed. java.io.FileNotFoundException: /data/applogs/xxx/xxx-server.log (No such file or directory)
at java.io.FileNotFoundException: /data/applogs/xxx/xxx-server.log (No such file or directory)
at at java.io.FileOutputStream.open0(Native Method)
at at java.io.FileOutputStream.open(FileOutputStream.java:270)
看日志意思是:创建某个日志文件报错
查看该目录,系统中没有该文件,也没有该目录
手动创建目录和文件
sudo mkdir -p /opt/applogs/xxx/
sudo touch /opt/applogs/xxx-server.log
sudo chmod 777 xxx-server.log
关于opt目录
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。