xxl-job安装部署
https://blog.csdn.net/qq_37056683/article/details/108060083
tee /usr/lib/systemd/system/xxl.service << "EOF"
[Unit]
Description=xxl-job
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/xxl-job/start-xxl.sh
PrivateTmp=true
[Install]
WantedBy=multi-user.target
EOF
systemctl daemon-reload
tee /usr/local/xxl-job/start-xxl.sh << "EOF"
#! /bin/bash
/usr/bin/java -jar /usr/local/xxl-job/xxl-job-admin-2.3.1-SNAPSHOT.jar >> /usr/local/xxl-job/xxl-job-admin.out 2>&1 &
/usr/bin/java -jar /usr/local/xxl-job/xxl-job-executor-sample-springboot-2.3.1-SNAPSHOT.jar >> /usr/local/xxl-job/xxl-job-executor.out 2>&1 &
EOF
chmode a+x /usr/local/xxl-job/start-xxl.sh