bash
docker pull xuxueli/xxl-job-admin:2.4.0
mkdir -p /root/xxjob/logs
docker run -d \
-e PARAMS="--spring.datasource.url=jdbc:mysql://192.168.31.135:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&serverTimezone=UTC \
--spring.datasource.username=root \
--spring.datasource.password=123456 \
--spring.datasource.driver-class-name=com.mysql.jdbc.Driver" \
-p 9056:8080 \
-v /root/xxjob/logs:/data/applogs \
--name xxl-job-admin \
-d xuxueli/xxl-job-admin:2.4.0
#初始化db
https://github.com/xuxueli/xxl-job/blob/2.4.2/doc/db/tables_xxl_job.sql
对脚本进行修改,添加ROW_FORMAT=DYNAMIC
create table test (........) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC;
初化的数据:
#登录
用户名密码:admin 123456