centos crontab
Linux设置定时任务命令crontab详细解释
https://blog.csdn.net/guo_qiangqiang/article/details/86715808
rpm -qa |grep crontab
crontabs-1.11-6.20121102git.el7.noarch
sudo service crond status
sudo systemctl status crond
● crond.service - Command Scheduler
Loaded: loaded (/usr/lib/systemd/system/crond.service; enabled; vendor preset: enabled)
Active: active (running) since 四 2024-08-22 12:00:16 CST; 3h 48min ago
Main PID: 7387 (crond)
Tasks: 1
CGroup: /system.slice/crond.service
└─7387 /usr/sbin/crond -n
8月 22 12:00:16 localhost.localdomain systemd[1]: Started Command Scheduler.
8月 22 12:00:16 localhost.localdomain crond[7387]: (CRON) INFO (RANDOM_DELAY will be scaled with factor 92% if used.)
8月 22 12:00:17 localhost.localdomain crond[7387]: (CRON) INFO (running with inotify support)
8月 22 15:48:01 localhost.localdomain crond[7387]: (root) RELOAD (/var/spool/cron/root)
sudo crontab -e
10 4 * * * /home/jack/script_xtrabackup.sh
11
30 10 * * * /home/etc/mysql/backup_script.sh > /dev/null 2>&1 &
sudo crontab -l
4点10分钟