linux新加定時任務

1.編寫shell腳本,我這裏寫的是clean-images.sh 2.crontab -e編輯定時任務。 然後用vi編輯器,輸入0 */2 * * * /data/docker/script/clean-images.sh >> /data/docker/script/clean-images.log 最後wq!保存。 3,重啓crontab service crond restart
相關文章
相關標籤/搜索