Browse Source

修改配置文件

wangq 4 years ago
parent
commit
c1600dfbb5

+ 10 - 6
xxl-job-admin/src/main/resources/application.properties

@@ -1,5 +1,5 @@
 ### web
-server.port=8080
+server.port=9966
 #server.port=7009
 server.servlet.context-path=/xxl-job-admin
 
@@ -24,9 +24,13 @@ mybatis.mapper-locations=classpath:/mybatis-mapper/*Mapper.xml
 #mybatis.type-aliases-package=com.xxl.job.admin.core.model
 
 ### xxl-job, datasource
-spring.datasource.url=jdbc:mysql://127.0.0.1:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
-spring.datasource.username=root
-spring.datasource.password=root
+#spring.datasource.url=jdbc:mysql://127.0.0.1:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
+#spring.datasource.username=root
+#spring.datasource.password=root
+spring.datasource.url=jdbc:mysql://106.52.134.22:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
+spring.datasource.username=dever
+spring.datasource.password=123456
+
 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
 
 ### datasource-pool
@@ -62,5 +66,5 @@ xxl.job.i18n=zh_CN
 xxl.job.triggerpool.fast.max=200
 xxl.job.triggerpool.slow.max=100
 
-### xxl-job, log retention days
-xxl.job.logretentiondays=30
+### xxl-job, log retention days 30
+xxl.job.logretentiondays=-1

+ 2 - 2
xxl-job-core/src/main/java/com/xxl/job/core/log/XxlJobFileAppender.java

@@ -33,8 +33,8 @@ public class XxlJobFileAppender {
 	 * 	---/2017-12-25/821.log
 	 *
 	 */
-	private static String logBasePath = "/data/applogs/xxl-job/jobhandler";
-	private static String glueSrcPath = logBasePath.concat("/gluesource");
+	private static String logBasePath = "/data/applogs/xxl-job/jobhandler";// /home/dever/xxl_job/jobhandler
+	private static String glueSrcPath = logBasePath.concat("gluesource");
 	public static void initLogPath(String logPath){
 		// init
 		if (logPath!=null && logPath.trim().length()>0) {