无任何修改,只在yml配置文件修改了数据库信息,还有就是把日志直接改成了绝对地址,在宝塔的面板发布,发现启动了之后立马自行停止,重启或是重新发布尝试多次问题依然,查看日志如下:
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at com.zbkj.admin.CrmebAdminApplication.main(CrmebAdminApplication.java:43)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: ... 8 more
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: Caused by: java.lang.IllegalStateException: Logback configuration error detected:
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[DEBUG_FILE] - openFile(/data/log/log_debug.log,true) call failed. java.io.FileNotFoundException: /data/log/log_debug.log (Permission denied)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[INFO_FILE] - openFile(/data/log/log_info.log,true) call failed. java.io.FileNotFoundException: /data/log/log_info.log (Permission denied)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[WARN_FILE] - openFile(/data/log/log_warn.log,true) call failed. java.io.FileNotFoundException: /data/log/log_warn.log (Permission denied)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[ERROR_FILE] - openFile(/data/log/log_error.log,true) call failed. java.io.FileNotFoundException: /data/log/log_error.log (Permission denied)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadConfiguration(LogbackLoggingSystem.java:169)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.logging.AbstractLoggingSystem.initializeWithSpecificConfig(AbstractLoggingSystem.java:66)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.logging.AbstractLoggingSystem.initialize(AbstractLoggingSystem.java:57)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.logging.logback.LogbackLoggingSystem.initialize(LogbackLoggingSystem.java:118)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: at org.springframework.boot.context.logging.LoggingApplicationListener.initializeSystem(LoggingApplicationListener.java:318)
Sep 25 09:21:28 VM-24-3-centos spring_Crmeb_admin_jar: ... 22 more