xxl-job 配置执行器
时间: 2023-10-21 08:20:53 浏览: 247
xxl-job的配置执行器需要修改以下几个位置。首先,需要将调度中心地址修改为集群的地址,具体配置为:
xxl.job.admin.addresses=http://ls.xxljob.***配置如下:
xxl.job.accessToken=default_token
接着,需要指定执行器名称,每个服务都应该有不同的执行器名称,同一个服务的不同集群节点的执行器名称应该相同,配置如下:
xxl.job.executor.appname=my-simple-executor
最后,将修改后的配置文件复制到项目中即可使用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [xxl-job配置及使用](https://blog.csdn.net/he_xin2009/article/details/124220797)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [【分布式任务调度】(二)XXL-JOB执行器配置及定时任务的创建](https://blog.csdn.net/qq_38249409/article/details/127456979)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [xxl-job2.3.0集成nacos配置,注册中心](https://download.csdn.net/download/weixin_44618291/85347103)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文