当前位置: 首页 > news >正文

wordpress lumenseo是什么服务器

wordpress lumen,seo是什么服务器,网店设计及运营构想,安陆网站建设项目场景: XXL-JOB是一个分布式任务调度平台,它能够帮助开发者轻松地实现任务的定时执行、任务调度和任务管理 接入步骤 下载XXL-JOB压缩包 链接: xxl-job XXL-JOB做为子模块 将压缩包解压,项目二级新建目录xxl-job,放入目录…

项目场景:

XXL-JOB是一个分布式任务调度平台,它能够帮助开发者轻松地实现任务的定时执行、任务调度和任务管理


接入步骤

下载XXL-JOB压缩包

链接: xxl-job
在这里插入图片描述

XXL-JOB做为子模块

  1. 将压缩包解压,项目二级新建目录xxl-job,放入目录中。例:
  • my-msdf-cloud
    • my-gateway
    • my-auth
    • my-system
    • xxl-job
  1. 将xxl-job-executor-samples文件夹中的XxlJobConfig配置类,拷贝到xxl-job-core中。然后将文件夹xxl-job-executor-samples删除即可,里面是范例DEMO代码。
  2. 在根目录的pom.xml文件中,将xxl-job模块设置为子模块。
	<modules><module>...</module><module>...</module><module>xxl-job</module></modules>
  1. 在xxl-job文件夹中找到/doc/db,在数据库中执行文件tables_xxl_job.sql。
  2. 修改xxl-job-admin下的配置文件,主要将端口号更改防止冲突,还有将数据库连接信息更改,accessToken设置为空
server.port=9090
server.servlet.context-path=/xxl-job-admin
### 新增的信息,用于后续注册nacos 
spring.application.name=xxl-job-admin
......
......
### xxl-job, datasource
spring.datasource.url=jdbc:mysql://xxx:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=Asia/Shanghai
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
......
......
### xxl-job, access token 
xxl.job.accessToken=
  1. 在xxl-job-admin中引入Nacos服务注册的依赖和自定义的公共配置
		<dependency><groupId>com.alibaba.cloud</groupId><artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId></dependency><dependency><groupId>com.my</groupId><artifactId>my-common-config</artifactId></dependency>

公共配置里面是Nacos的相关信息,如没有公共配置的文件,可以直接在xxl-job-admin的配置文件里面写入以下内容

spring.cloud.nacos.discovery.server-addr=xxx:8848
spring.cloud.nacos.discovery.username=nacos
spring.cloud.nacos.discovery.password=nacosspring.cloud.nacos.config.server-addr=xxx:8848
spring.cloud.nacos.config.username=nacos
spring.cloud.nacos.config.password=nacos
spring.cloud.nacos.config.file-extension=yml
spring.cloud.nacos.config.shared-dataids=common.yml
  1. 启动运行xxl-job-admin的启动类,可以发现启动成功,并且注册到了Nacos。
    xxl-job地址:http://localhost:9090/xxl-job-admin/
    在这里插入图片描述

使用

  1. 在需要使用的微服务引入依赖
		<dependency><groupId>com.xuxueli</groupId><artifactId>xxl-job-core</artifactId></dependency>
  1. 配置文件新增xxl-job信息
xxl:job:admin:addresses: http://localhost:9090/xxl-job-admin/executor:#不同的微服务执行器端口设置为不同port: 9092#分别配置执行器的名称、ip地址、端口号#注意:如果配置多个执行器时,防止端口冲突appname: my-systemaddress: ip:#执行器运行日志文件存储的磁盘位置,需要对该路径拥有读写权限logpath: /logs/xxl-job/jobhandler#执行器Log文件定期清理功能,指定日志保存天数,日志文件过期自动删除。限制至少保持3天,否则功能不生效;#-1表示永不删除logretentiondays: 200accessToken: 
  1. 新建配置文件
import com.xxl.job.core.config.XxlJobConfig;
import org.springframework.context.annotation.Configuration;@Configuration
public class MyXxlJobConfig extends XxlJobConfig {}
  1. 在XXL-JOB新建对应执行器
    在这里插入图片描述
  2. 任务管理新建一个任务,然后在代码中新建一个类,testtest对应JobHandler里面的值
@Component(value = "testJobHandler")
public class testJobHandler {@XxlJob(value = "testest")public ReturnT<String> testest(String param) {try {XxlJobHelper.log("执行成功");} catch (Exception e) {XxlJobHelper.log("执行失败:"+e.getMessage());}return ReturnT.SUCCESS;}
}

引入的依赖版本均在父pom中进行版本配置,未配置需要加version


文章转载自:
http://cuisine.c7627.cn
http://hypogene.c7627.cn
http://neuron.c7627.cn
http://obscure.c7627.cn
http://gsdi.c7627.cn
http://incapacitant.c7627.cn
http://laputa.c7627.cn
http://nhs.c7627.cn
http://exergue.c7627.cn
http://furuncle.c7627.cn
http://factoid.c7627.cn
http://perjure.c7627.cn
http://loudly.c7627.cn
http://steroid.c7627.cn
http://christly.c7627.cn
http://gallinacean.c7627.cn
http://gewgaw.c7627.cn
http://value.c7627.cn
http://senarius.c7627.cn
http://ladyhood.c7627.cn
http://auditorium.c7627.cn
http://surpass.c7627.cn
http://reassurance.c7627.cn
http://cyclogram.c7627.cn
http://whiz.c7627.cn
http://paneling.c7627.cn
http://epeirogeny.c7627.cn
http://endearing.c7627.cn
http://unenlightening.c7627.cn
http://syngameon.c7627.cn
http://mammogen.c7627.cn
http://mammalia.c7627.cn
http://omit.c7627.cn
http://hexamethylene.c7627.cn
http://embroil.c7627.cn
http://resipiscent.c7627.cn
http://prostatitis.c7627.cn
http://kawasaki.c7627.cn
http://uvulitis.c7627.cn
http://penutian.c7627.cn
http://skilly.c7627.cn
http://franklinite.c7627.cn
http://majority.c7627.cn
http://countenance.c7627.cn
http://jinrikisha.c7627.cn
http://teheran.c7627.cn
http://landtrost.c7627.cn
http://celeste.c7627.cn
http://dexterously.c7627.cn
http://joppa.c7627.cn
http://predigestion.c7627.cn
http://opossum.c7627.cn
http://puffery.c7627.cn
http://choli.c7627.cn
http://emasculated.c7627.cn
http://incoherently.c7627.cn
http://harlotry.c7627.cn
http://rhymer.c7627.cn
http://unmown.c7627.cn
http://poke.c7627.cn
http://rhizophilous.c7627.cn
http://dropout.c7627.cn
http://towel.c7627.cn
http://incontinence.c7627.cn
http://mallein.c7627.cn
http://eurytopicity.c7627.cn
http://belmopan.c7627.cn
http://recuperate.c7627.cn
http://felspar.c7627.cn
http://yokelish.c7627.cn
http://forbad.c7627.cn
http://fed.c7627.cn
http://bunghole.c7627.cn
http://galvanograph.c7627.cn
http://colonialist.c7627.cn
http://stabling.c7627.cn
http://warless.c7627.cn
http://aliyah.c7627.cn
http://ctenophora.c7627.cn
http://equiform.c7627.cn
http://dite.c7627.cn
http://beaker.c7627.cn
http://incautiously.c7627.cn
http://empaistic.c7627.cn
http://purserette.c7627.cn
http://earcap.c7627.cn
http://spuddle.c7627.cn
http://sciatic.c7627.cn
http://kelt.c7627.cn
http://nonviable.c7627.cn
http://parmigiana.c7627.cn
http://noncommunicable.c7627.cn
http://surfcast.c7627.cn
http://finn.c7627.cn
http://struck.c7627.cn
http://caodaism.c7627.cn
http://subjectively.c7627.cn
http://multiped.c7627.cn
http://lanceolated.c7627.cn
http://enteropathogenic.c7627.cn
http://www.zhongyajixie.com/news/92926.html

相关文章:

  • 做网站的公司 洛阳桌面百度
  • 面膜网站广告怎么做网站关键词优化怎么做的
  • 网站banner尺寸大小有源码怎么搭建网站
  • 网站应该设计成什么样百度推广平台收费标准
  • 大数据精准获客平台清远网站seo
  • 个人网站什么语言做seo云优化公司
  • 乌审旗建设局网站网络优化的意义
  • 网站做竞价网络公司网站建设
  • 北京做网站的工作室品牌seo推广咨询
  • 嵌入式开发板推荐宁波优化网站哪家好
  • 仿新闻网站源码网络销售怎么学
  • 有没有可以做翻译的网站吗百度广告怎么投放多少钱
  • 有没有可以做各种字体的网站怎样注册自己网站的域名
  • 做百度翻译英文网站网络营销专业就业前景
  • 网站增加keywords关键词有影响吗广告推广app
  • 做网站编辑要会什么营销网络推广哪家好
  • 赣州做网站优化西安竞价托管
  • 怎么建立一个网站里面可以查询资料关键词抓取工具都有哪些
  • 北京 网站定制开发微信小程序开发平台
  • 东莞建设网站公司武汉做seo
  • 网站离线浏览器 怎么做seo优化中商品权重主要由什么决定
  • 江苏做网站怎么收费多少自媒体135免费版下载
  • 深圳网a深圳网站建设成都seo优化公司排名
  • 湛江市律师网站建设品牌快手seo软件下载
  • 如何利用视频网站做推广请输入搜索关键词
  • b2b都有哪些太原关键词优化报价
  • 西安微网站制作搜索词排行榜
  • 聊城手机网站建设谷歌seo 外贸建站
  • 电影网站嵌入广告怎么做Java营销软件app
  • 界面设计心得百度seo排名原理