編寫shell腳本
test.sh內容如下,上傳到linux的root目錄
更改文件權限
chmod 777 test.sh
編輯定時任務
crontab -e
*/5 * * * * /root/test.sh
查看定時任務
crontab -l
刪除定時任務
crontab -r
==========================================================
cron的格式
*/5 * * * * /root/test.sh 每隔5分鍾執行一次test.sh腳本