CentOS Linux 排程操作
單次排程使用 at ex. 如果在 2020/4/1 上午3點需關機,#後方為說明 $為命令提示字元 $ at 03:00 2020-04-01 > sync && sync && shutdown -h now > #按下Ctrl+D 可用指令 atq 查詢,清單前方為排程序號 若有錯誤,可用指令 atrm 接序號清除 $ atrm 2 重複排程用cron (每年都做) ex 重複申請 Letsencrypt,利用指令crontab編輯 $ crontab -e 0 12 0 0 0 certbot renew #空白單格即可,此為了說明才多空白 ----------------------------------------- | | | | | min hour day month day of the month of the week 參考資料 https://en.wikipedia.org/wiki/Cron https://...