如果集群:
保存后:
启动两个 job
第二个 job 的配置:
- # web port
- server.port=8082
- # log config
- logging.config=classpath:logback.xml
- ### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
- xxl.job.admin.addresses=http://127.0.0.1:8080/xxl-job-admin
- ### xxl-job executor address
- xxl.job.executor.appname=toov5-job
- xxl.job.executor.ip=
- xxl.job.executor.port=9998
- ### xxl-job, access token
- xxl.job.accessToken=
- ### xxl-job log path
- xxl.job.executor.logpath=/data/applogs/xxl-job/jobhandler
- ### xxl-job log retention days
- xxl.job.executor.logretentiondays=-1
点击恢复:
点击执行!
成功!
来源: http://www.bubuko.com/infodetail-2851377.html