报错提示权限不够
Caused by: java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file] - openFile(/data/cccc/xsas/aaaaaaaaa.log,true) call failed. java.io.FileNotFoundException: /data/applogs/xxl-job/xxl-job-executor-mongo.log (权限不够)
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[file] - openFile(/data/cccc/xsas/aaaaaaaaa..log,true) call failed. java.io.FileNotFoundException: /data/applogs//cccc/xsas/aaaaaaaaa..log (权限不够)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:169)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithSpecificConfig(AbstractLoggingSystem.java:66)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:57)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:118)
at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:311)
解决方案
修改日志文件路径配置
<property name="log.path" value="/home/liming/jar/applogs/aaaaaa.log"/>
修改后重新打包启动即可