linux 定時(shí)執(zhí)行
來(lái)源:懂視網(wǎng)
責(zé)編:李贏贏
時(shí)間:2021-11-03 21:15:41
linux 定時(shí)執(zhí)行
?1、在linux系統(tǒng)下,輸入命令:cat /etc/crontab,查看crontab ;2、輸入腳本命令: hadoop jar /tycrtest/test2.jar;3、輸入crontab -e命令進(jìn)入編輯界面。
導(dǎo)讀?1、在linux系統(tǒng)下,輸入命令:cat /etc/crontab,查看crontab ;2、輸入腳本命令: hadoop jar /tycrtest/test2.jar;3、輸入crontab -e命令進(jìn)入編輯界面。
linux定時(shí)執(zhí)行總共需要分三步進(jìn)行,具體的操作步驟如下所示:
-
1
查看crontab
在linux系統(tǒng)下,輸入命令:cat /etc/crontab,查看crontab。
-
2
輸入腳本
輸入腳本命令: hadoop jar /tycrtest/test2.jar,顯示已經(jīng)設(shè)定好的任務(wù)。
-
3
編輯定時(shí)任務(wù)
編輯定時(shí)任務(wù):crontab-e進(jìn)入編輯界面會(huì)顯示已存在的定時(shí)任務(wù) 。
-
end
聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問(wèn)題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
linux 定時(shí)執(zhí)行
?1、在linux系統(tǒng)下,輸入命令:cat /etc/crontab,查看crontab ;2、輸入腳本命令: hadoop jar /tycrtest/test2.jar;3、輸入crontab -e命令進(jìn)入編輯界面。