服務器定時任務命令crontab

分 時 日 月 周 root 身份登錄到命令行 輸入 crontab -e      (注:不要輸入 crontab -r 了,因爲 e 和 r 挨着的,r 就是 remove ) 按下 a 鍵進入到編輯模式 輸入 0 */1 * * * cd /home/work; python3 test.py 或者 */60 * * * * cd /home/work; python3 test.py 同時
相關文章
相關標籤/搜索