下载源码
执行需要的sql脚本
doc/db/tables_xxl_job.sql
修改application配置属性
xxl-job-admin:
server.port=8082
spring.datasource.url=jdbc:mysql://10.211.55.6:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true\
&serverTimezone=Asia/Shanghai
spring.datasource.username=cancan
spring.datasource.password=uURUx%7i
xxl-job-executor-samples-springboot:
server.port=8083
xxl.job.admin.addresses=http://10.211.55.6:8083/xxl-job-admin
编译打包丢到服务器,启动
启动调度中心
nohup java -jar xxl-job-admin/target/xxl-job-admin-2.0.1.jar &
启动执行器
nohup java -jar xxl-job-executor-samples/xxl-job-executor-sample-springboot/target/xxl-job-executor-sample-springboot-2.0.1.jar &
访问调度中心
默认密码:admin/123456