crontab -e
30 5 * * * /bin/sh /root/cleanDockerLog.sh
- 查看创建的定时任务
crontab -l
启动服务/sbin/service crond start
查看服务ps -ax | grep cron
查看执行情况:tail -f /var/log/cron
crontab -e
30 5 * * * /bin/sh /root/cleanDockerLog.sh
crontab -l
启动服务/sbin/service crond start
查看服务ps -ax | grep cron
查看执行情况:tail -f /var/log/cron