docker安装xxl-job

一 安装mysql

root@localhost tmp]# docker run -itd --name xxl-mysql -p 3306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql:5.6.40
Unable to find image 'mysql:5.6.40' locally
Trying to pull repository docker.io/library/mysql ...
5.6.40: Pulling from docker.io/library/mysql
be8881be8156: Pull complete
c3995dabd1d7: Pull complete
9931fdda3586: Pull complete
bb1b6b6eff6a: Pull complete
a65f125fa718: Pull complete
62fa8db7a5dc: Pull complete
ea8988c5d951: Pull complete
a14d36079892: Pull complete
ae927d273de4: Pull complete
7cd17abd57c5: Pull complete
adc2c9e19981: Pull complete
Digest: sha256:4902cd80486dca889205576a698a3e6534376ef6d8b94ef9fc9c61e891f1cd15
Status: Downloaded newer image for docker.io/mysql:5.6.40
b3b4acb67fc71f615ab602d43da07e0f99cefd4db114315f3fac714f6f00e32f
[root@localhost tmp]# docker ps -l
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
b3b4acb67fc7        mysql:5.6.40        "docker-entrypoint..."   3 minutes ago       Up 3 minutes        0.0.0.0:3306->3306/tcp   xxl-mysql
[root@localhost tmp]# mkdir xxl-job-1.9.1/doc/db -p
[root@localhost tmp]# cd xxl-job-1.9.1/doc/db/
[root@localhost db]# ll
总用量 0
[root@localhost db]# vim tables_xxl_job.sql
[root@localhost db]# ll
总用量 8
-rw-r--r-- 1 root root 6450 12月 13 16:12 tables_xxl_job.sql
[root@localhost db]# docker cp /tmp/xxl-job-1.9.1/doc/db/tables_xxl_job.sql xxl-mysql:/tmp
[root@localhost db]# docker exec -it xxl-mysql /bin/bash
root@b3b4acb67fc7:/# mysql -uroot -p123456
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.40 MySQL Community Server (GPL)

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> CREATE DATABASE `xxl-job` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
Query OK, 1 row affected (0.00 sec)

mysql> source /tmp/tables_xxl_job.sql
Query OK, 1 row affected (0.01 sec)

Database changed
Query OK, 0 rows affected (0.03 sec)

Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected, 2 warnings (0.01 sec)

Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected (0.01 sec)

Query OK, 0 rows affected (0.01 sec)

Query OK, 1 row affected, 1 warning (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 1 row affected (0.00 sec)

Query OK, 0 rows affected (0.00 sec)
CREATE database if NOT EXISTS `xxl_job` default character set utf8mb4 collate utf8mb4_unicode_ci;
use `xxl_job`;


CREATE TABLE `xxl_job_info` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
  `job_cron` varchar(128) NOT NULL COMMENT '任务执行CRON',
  `job_desc` varchar(255) NOT NULL,
  `add_time` datetime DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  `author` varchar(64) DEFAULT NULL COMMENT '作者',
  `alarm_email` varchar(255) DEFAULT NULL COMMENT '报警邮件',
  `executor_route_strategy` varchar(50) DEFAULT NULL COMMENT '执行器路由策略',
  `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
  `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
  `executor_block_strategy` varchar(50) DEFAULT NULL COMMENT '阻塞处理策略',
  `executor_timeout` int(11) NOT NULL DEFAULT '0' COMMENT '任务执行超时时间,单位秒',
  `executor_fail_retry_count` int(11) NOT NULL DEFAULT '0' COMMENT '失败重试次数',
  `glue_type` varchar(50) NOT NULL COMMENT 'GLUE类型',
  `glue_source` mediumtext COMMENT 'GLUE源代码',
  `glue_remark` varchar(128) DEFAULT NULL COMMENT 'GLUE备注',
  `glue_updatetime` datetime DEFAULT NULL COMMENT 'GLUE更新时间',
  `child_jobid` varchar(255) DEFAULT NULL COMMENT '子任务ID,多个逗号分隔',
  `trigger_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '调度状态:0-停止,1-运行',
  `trigger_last_time` bigint(13) NOT NULL DEFAULT '0' COMMENT '上次调度时间',
  `trigger_next_time` bigint(13) NOT NULL DEFAULT '0' COMMENT '下次调度时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `job_group` int(11) NOT NULL COMMENT '执行器主键ID',
  `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
  `executor_address` varchar(255) DEFAULT NULL COMMENT '执行器地址,本次执行的地址',
  `executor_handler` varchar(255) DEFAULT NULL COMMENT '执行器任务handler',
  `executor_param` varchar(512) DEFAULT NULL COMMENT '执行器任务参数',
  `executor_sharding_param` varchar(20) DEFAULT NULL COMMENT '执行器任务分片参数,格式如 1/2',
  `executor_fail_retry_count` int(11) NOT NULL DEFAULT '0' COMMENT '失败重试次数',
  `trigger_time` datetime DEFAULT NULL COMMENT '调度-时间',
  `trigger_code` int(11) NOT NULL COMMENT '调度-结果',
  `trigger_msg` text COMMENT '调度-日志',
  `handle_time` datetime DEFAULT NULL COMMENT '执行-时间',
  `handle_code` int(11) NOT NULL COMMENT '执行-状态',
  `handle_msg` text COMMENT '执行-日志',
  `alarm_status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '告警状态:0-默认、1-无需告警、2-告警成功、3-告警失败',
  PRIMARY KEY (`id`),
  KEY `I_trigger_time` (`trigger_time`),
  KEY `I_handle_code` (`handle_code`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_log_report` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `trigger_day` datetime DEFAULT NULL COMMENT '调度-时间',
  `running_count` int(11) NOT NULL DEFAULT '0' COMMENT '运行中-日志数量',
  `suc_count` int(11) NOT NULL DEFAULT '0' COMMENT '执行成功-日志数量',
  `fail_count` int(11) NOT NULL DEFAULT '0' COMMENT '执行失败-日志数量',
  PRIMARY KEY (`id`),
  UNIQUE KEY `i_trigger_day` (`trigger_day`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_logglue` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `job_id` int(11) NOT NULL COMMENT '任务,主键ID',
  `glue_type` varchar(50) DEFAULT NULL COMMENT 'GLUE类型',
  `glue_source` mediumtext COMMENT 'GLUE源代码',
  `glue_remark` varchar(128) NOT NULL COMMENT 'GLUE备注',
  `add_time` datetime DEFAULT NULL,
  `update_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_registry` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `registry_group` varchar(50) NOT NULL,
  `registry_key` varchar(255) NOT NULL,
  `registry_value` varchar(255) NOT NULL,
  `update_time` datetime DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `i_g_k_v` (`registry_group`,`registry_key`,`registry_value`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_group` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `app_name` varchar(64) NOT NULL COMMENT '执行器AppName',
  `title` varchar(12) NOT NULL COMMENT '执行器名称',
  `order` int(11) NOT NULL DEFAULT '0' COMMENT '排序',
  `address_type` tinyint(4) NOT NULL DEFAULT '0' COMMENT '执行器地址类型:0=自动注册、1=手动录入',
  `address_list` varchar(512) DEFAULT NULL COMMENT '执行器地址列表,多地址逗号分隔',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_user` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `username` varchar(50) NOT NULL COMMENT '账号',
  `password` varchar(50) NOT NULL COMMENT '密码',
  `role` tinyint(4) NOT NULL COMMENT '角色:0-普通用户、1-管理员',
  `permission` varchar(255) DEFAULT NULL COMMENT '权限:执行器ID列表,多个逗号分割',
  PRIMARY KEY (`id`),
  UNIQUE KEY `i_username` (`username`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

CREATE TABLE `xxl_job_lock` (
  `lock_name` varchar(50) NOT NULL COMMENT '锁名称',
  PRIMARY KEY (`lock_name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;


INSERT INTO `xxl_job_group`(`id`, `app_name`, `title`, `order`, `address_type`, `address_list`) VALUES (1, 'xxl-job-executor-sample', '示例执行器', 1, 0, NULL);
INSERT INTO `xxl_job_info`(`id`, `job_group`, `job_cron`, `job_desc`, `add_time`, `update_time`, `author`, `alarm_email`, `executor_route_strategy`, `executor_handler`, `executor_param`, `executor_block_strategy`, `executor_timeout`, `executor_fail_retry_count`, `glue_type`, `glue_source`, `glue_remark`, `glue_updatetime`, `child_jobid`) VALUES (1, 1, '0 0 0 * * ? *', '测试任务1', '2018-11-03 22:21:31', '2018-11-03 22:21:31', 'XXL', '', 'FIRST', 'demoJobHandler', '', 'SERIAL_EXECUTION', 0, 0, 'BEAN', '', 'GLUE代码初始化', '2018-11-03 22:21:31', '');
INSERT INTO `xxl_job_user`(`id`, `username`, `password`, `role`, `permission`) VALUES (1, 'admin', 'e10adc3949ba59abbe56e057f20f883e', 1, NULL);
INSERT INTO `xxl_job_lock` ( `lock_name`) VALUES ( 'schedule_lock');

commit;

客户端登陆链接

docker安装xxl-job

 

 二 安装xxl-job

[root@localhost mnt]# docker pull xuxueli/xxl-job-admin:2.1.2
Trying to pull repository docker.io/xuxueli/xxl-job-admin ...
2.1.2: Pulling from docker.io/xuxueli/xxl-job-admin
795df959b1e6: Pull complete
a2e8defe034f: Pull complete
50d8dad75e60: Pull complete
ad497c735995: Pull complete
40288f52be3a: Pull complete
7b39862ad1f3: Pull complete
2b4a4683cf71: Pull complete
Digest: sha256:c72604c8357dd9fbba823f04878be2a7b8bc77cef1e51e8007ee02ec72d9bb59
Status: Downloaded newer image for docker.io/xuxueli/xxl-job-admin:2.1.2
[root@localhost mnt]# docker images
REPOSITORY                        TAG                 IMAGE ID            CREATED             SIZE
docker.io/xuxueli/xxl-job-admin   2.1.2               cfe34e8d6785        18 hours ago        227 MB
docker.io/mongo                   latest              965553e202a4        6 weeks ago         363 MB
docker.io/wangyanglinux/myapp     v1                  d4a5e0eaa84f        21 months ago       15.5 MB

启动发现报错

[root@localhost db]# docker run -e PARAMS="--spring.datasource.url=jdbc:mysql://192.168.180.114:3306/xxl_job?Unicode=true&characterEncoding=UTF-8" -p 8080:8080 -v /tmp:/data/applogs --name xxl-job-admin  -d cfe34e8d6785
82bdd506aa64356d87a1a4b669566c4b40a21f559357e91221e1d023de4dae3c
[root@localhost db]# docker ps -l
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
82bdd506aa64        cfe34e8d6785        "sh -c 'java -jar ..."   6 seconds ago       Up 5 seconds        0.0.0.0:8080->8080/tcp   xxl-job-admin
[root@localhost db]# docker ps -l
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
82bdd506aa64        cfe34e8d6785        "sh -c 'java -jar ..."   8 seconds ago       Up 7 seconds        0.0.0.0:8080->8080/tcp   xxl-job-admin
[root@localhost db]# docker logs -t -f --tail 200f 82bdd506aa64
2019-12-13T08:23:41.377873000Z   .   ____          _            __ _ _
2019-12-13T08:23:41.378256000Z  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2019-12-13T08:23:41.378717000Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2019-12-13T08:23:41.378978000Z  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2019-12-13T08:23:41.379318000Z   '  |____| .__|_| |_|_| |_\__, | / / / /
2019-12-13T08:23:41.379739000Z  =========|_|==============|___/=/_/_/_/
2019-12-13T08:23:41.380926000Z  :: Spring Boot ::       (v1.5.22.RELEASE)
2019-12-13T08:23:42.023801000Z 16:23:42.019 logback [main] INFO  c.x.job.admin.XxlJobAdminApplication - Starting XxlJobAdminApplication on 82bdd506aa64 with PID 6 (/app.jar started by root in /)
2019-12-13T08:23:42.028025000Z 16:23:42.024 logback [main] INFO  c.x.job.admin.XxlJobAdminApplication - No active profile set, falling back to default profiles: default
2019-12-13T08:23:43.146957000Z 16:23:43.146 logback [main] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@c1fcbcb: startup date [Fri Dec 13 16:23:43 CST 2019]; root of context hierarchy
2019-12-13T08:23:43.239365000Z 16:23:43.235 logback [background-preinit] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
2019-12-13T08:23:48.306090000Z 16:23:48.300 logback [main] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 8080 (http)
2019-12-13T08:23:48.427783000Z 16:23:48.412 logback [main] INFO  o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
2019-12-13T08:23:48.512834000Z 16:23:48.511 logback [main] INFO  o.a.catalina.core.StandardService - Starting service [Tomcat]
2019-12-13T08:23:48.514330000Z 16:23:48.513 logback [main] INFO  o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.43
2019-12-13T08:23:48.856996000Z 16:23:48.856 logback [localhost-startStop-1] INFO  o.a.c.c.C.[.[.[/xxl-job-admin] - Initializing Spring embedded WebApplicationContext
2019-12-13T08:23:48.857596000Z 16:23:48.856 logback [localhost-startStop-1] INFO  o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 5711 ms
2019-12-13T08:23:49.775866000Z 16:23:49.775 logback [localhost-startStop-1] INFO  o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
2019-12-13T08:23:49.794967000Z 16:23:49.792 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'metricsFilter' to: [/*]
2019-12-13T08:23:49.795524000Z 16:23:49.793 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/*]
2019-12-13T08:23:49.795834000Z 16:23:49.793 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2019-12-13T08:23:49.796096000Z 16:23:49.793 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/*]
2019-12-13T08:23:49.799222000Z 16:23:49.794 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/*]
2019-12-13T08:23:49.799528000Z 16:23:49.796 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'webRequestLoggingFilter' to: [/*]
2019-12-13T08:23:49.799989000Z 16:23:49.796 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'applicationContextIdFilter' to: [/*]
2019-12-13T08:23:52.403308000Z 16:23:52.401 logback [main] INFO  c.x.j.a.c.scheduler.XxlJobScheduler - >>>>>>>>> init xxl-job admin success.
2019-12-13T08:23:52.485322000Z 16:23:52.483 logback [xxl-job, admin JobFailMonitorHelper] WARN  o.a.tomcat.jdbc.pool.ConnectionPool - maxIdle is larger than maxActive, setting maxIdle to: 30
2019-12-13T08:23:54.394199000Z 16:23:54.388 logback [xxl-job, admin JobFailMonitorHelper] ERROR o.a.tomcat.jdbc.pool.ConnectionPool - Unable to create initial connections of pool.
2019-12-13T08:23:54.394432000Z java.sql.SQLException: Access denied for user 'root'@'172.17.0.1' (using password: YES)
2019-12-13T08:23:54.398018000Z  at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
2019-12-13T08:23:54.398391000Z  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
2019-12-13T08:23:54.435748000Z  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
2019-12-13T08:23:54.436153000Z  at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:864)
2019-12-13T08:23:54.436434000Z  at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1707)
[root@localhost db]# docker ps -l
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
82bdd506aa64        cfe34e8d6785        "sh -c 'java -jar ..."   47 seconds ago      Up 47 seconds       0.0.0.0:8080->8080/tcp   xxl-job-admin
[root@localhost db]# docker stop 82bdd506aa64
82bdd506aa64
[root@localhost db]# docker rm 82bdd506aa64
82bdd506aa64
[root@localhost db]# docker run -e PARAMS="--spring.datasource.url=jdbc:mysql://192.168.180.114:3306/xxl_job?Unicode=true&characterEncoding=UTF-8 --spring.datasource.username=root  --spring.datasource.password=123456" -p 8080:8080 -v /tmp:/data/applogs --name xxl-job-admin  --privileged=true -d cfe34e8d6785
ae8ce52568def54f14838bf8d06b53598ba7d3b2859b615b77d526136a562247
[root@localhost db]# docker ps -l
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
ae8ce52568de        cfe34e8d6785        "sh -c 'java -jar ..."   14 seconds ago      Up 12 seconds       0.0.0.0:8080->8080/tcp   xxl-job-admin
[root@localhost db]# docker logs -t -f --tail 200f ae8ce52568de
2019-12-13T08:28:46.018966000Z   .   ____          _            __ _ _
2019-12-13T08:28:46.019267000Z  /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
2019-12-13T08:28:46.019546000Z ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
2019-12-13T08:28:46.019999000Z  \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
2019-12-13T08:28:46.020280000Z   '  |____| .__|_| |_|_| |_\__, | / / / /
2019-12-13T08:28:46.020631000Z  =========|_|==============|___/=/_/_/_/
2019-12-13T08:28:46.034079000Z  :: Spring Boot ::       (v1.5.22.RELEASE)
2019-12-13T08:28:46.497399000Z 16:28:46.490 logback [main] INFO  c.x.job.admin.XxlJobAdminApplication - Starting XxlJobAdminApplication on ae8ce52568de with PID 6 (/app.jar started by root in /)
2019-12-13T08:28:46.502447000Z 16:28:46.497 logback [main] INFO  c.x.job.admin.XxlJobAdminApplication - No active profile set, falling back to default profiles: default
2019-12-13T08:28:47.290910000Z 16:28:47.286 logback [main] INFO  o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@41480ec1: startup date [Fri Dec 13 16:28:47 CST 2019]; root of context hierarchy
2019-12-13T08:28:47.355948000Z 16:28:47.350 logback [background-preinit] INFO  o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.3.6.Final
2019-12-13T08:28:51.315954000Z 16:28:51.314 logback [main] INFO  o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 8080 (http)
2019-12-13T08:28:51.344838000Z 16:28:51.341 logback [main] INFO  o.a.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler ["http-nio-8080"]
2019-12-13T08:28:51.389910000Z 16:28:51.384 logback [main] INFO  o.a.catalina.core.StandardService - Starting service [Tomcat]
2019-12-13T08:28:51.390319000Z 16:28:51.385 logback [main] INFO  o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.43
2019-12-13T08:28:51.747611000Z 16:28:51.746 logback [localhost-startStop-1] INFO  o.a.c.c.C.[.[.[/xxl-job-admin] - Initializing Spring embedded WebApplicationContext
2019-12-13T08:28:51.748453000Z 16:28:51.746 logback [localhost-startStop-1] INFO  o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 4460 ms
2019-12-13T08:28:52.587753000Z 16:28:52.582 logback [localhost-startStop-1] INFO  o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
2019-12-13T08:28:52.600791000Z 16:28:52.598 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'metricsFilter' to: [/*]
2019-12-13T08:28:52.601183000Z 16:28:52.598 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/*]
2019-12-13T08:28:52.601480000Z 16:28:52.599 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2019-12-13T08:28:52.601822000Z 16:28:52.599 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/*]
2019-12-13T08:28:52.602906000Z 16:28:52.599 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/*]
2019-12-13T08:28:52.603830000Z 16:28:52.599 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'webRequestLoggingFilter' to: [/*]
2019-12-13T08:28:52.604046000Z 16:28:52.600 logback [localhost-startStop-1] INFO  o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'applicationContextIdFilter' to: [/*]
2019-12-13T08:28:55.514688000Z 16:28:55.511 logback [main] INFO  c.x.j.a.c.scheduler.XxlJobScheduler - >>>>>>>>> init xxl-job admin success.
2019-12-13T08:28:55.610190000Z 16:28:55.607 logback [xxl-job, admin JobRegistryMonitorHelper] WARN  o.a.tomcat.jdbc.pool.ConnectionPool - maxIdle is larger than maxActive, setting maxIdle to: 30
2019-12-13T08:28:57.373683000Z 16:28:57.369 logback [main] INFO  o.s.w.s.m.m.a.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@41480ec1: startup date [Fri Dec 13 16:28:47 CST 2019]; root of context hierarchy
2019-12-13T08:28:57.566437000Z 16:28:57.562 logback [main] INFO  o.s.w.s.m.m.a.RequestMappingHandlerMapping - Mapped "{[/chartInfo]}" onto public com.xxl.job.core.biz.model.ReturnT<java.util.Map<java.lang.String, java.lang.Object>> com.xxl.job.admin.controller.IndexController.chartInfo(java.util.Date,java.util.Date)

加上一些配置以后,发起可以启动

docker安装xxl-job

上一篇:分布式任务调度平台XXL-JOB快速使用与问题总结


下一篇:20191023 XXL-JOB