Browse Source

修改配置文件
调整端口

wangq 4 years ago
parent
commit
18e59bba19

+ 9 - 7
xxl-job-admin/src/main/resources/application.properties

@@ -24,12 +24,14 @@ 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://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
+# local
+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
+# server
+#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
 
@@ -67,4 +69,4 @@ xxl.job.triggerpool.fast.max=200
 xxl.job.triggerpool.slow.max=100
 
 ### xxl-job, log retention days 30
-xxl.job.logretentiondays=-1
+xxl.job.logretentiondays=30

+ 1 - 1
xxl-job-admin/src/main/resources/logback.xml

@@ -2,7 +2,7 @@
 <configuration debug="false" scan="true" scanPeriod="1 seconds">
 
     <contextName>logback</contextName>
-    <property name="log.path" value="/data/applogs/xxl-job/xxl-job-admin.log"/>
+    <property name="log.path" value="/home/dever/xxl_job/xxl-job-admin.log"/>
 
     <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
         <encoder>

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

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