配置crontab定时任务


添加crontab任务:

crontab -e

*/1 * * * * sh /目录/xx.sh >> /目录/xx.log

重启crontab服务:

systemctl restart crond.service

查看crontab任务列表:

crontab -l