centos7中crontab定時(shí)計(jì)劃任務(wù)5分鐘一次命令寫法
發(fā)布日期:2022-03-31 11:08    |    文章來源:源碼之家
										
									1.輸入命令:
[root@master ~]# crontab -e
2.添加:
*/5 * * * * /usr/share/nginx/spark_run_nginx_log.sh 2&>1 >> /usr/share/nginx/crontab_spark_run_nginx.log
3.等待驗(yàn)證:
[root@master ~]# cd /usr/share/nginx/ [root@master nginx]# ls crontab_spark_run_nginx.log metastore_db run_log.sh derby.log modules spark_run_nginx_log.sh html nginx_log.py test_log_records_add.sh [root@master nginx]# cat crontab_spark_run_nginx.log 18年 08月 02日 星期四 11:25:01 CST job start... --- rm hdfs output_nginx --- --- rm url information --- Deleted /user/flume/nginx_log_output_need/url/20180802 --- rm url information ok--- --- rm ip404 information --- Deleted /user/flume/nginx_log_output_need/ip404/20180802 --- rm ip404 information ok--- --- rm hdfs output_nginx Done --- --- spark-submit ---
總結(jié)
以上所述是小編給大家介紹的centos7中crontab定時(shí)計(jì)劃任務(wù)5分鐘一次命令寫法,希望對(duì)大家有所幫助,如果大家有任何疑問請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)本站網(wǎng)站的支持!
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非maisonbaluchon.cn所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。
									相關(guān)文章
														
														
														
														
														
														
														
														
														
														
									
									
									
								 關(guān)注官方微信
                    關(guān)注官方微信