BAE3.0定时任务设置

  1. *  *  *  *  *  command   
  2. 分 时 日 月 周 命令   
  3. 1列表示分钟159 每分钟用*或者 */1表示   
  4. 2列表示小时1230表示0点)   
  5. 3列表示日期131  
  6. 4列表示月份112  
  7. 5列标识号星期060表示星期天)   
  8. 6列要运行的命令   
  9. crontab文件的一些例子:   
  10. 30 21 * * * /usr/local/etc/rc.d/lighttpd restart   
  11. 上面的例子表示每晚的21:30重启apache。   
  12. 45 4 1,10,22 * * /usr/local/etc/rc.d/lighttpd restart   
  13. 上面的例子表示每月11022日的4 : 45重启apache。   
  14. 10 1 * * 6,0 /usr/local/etc/rc.d/lighttpd restart   
  15. 上面的例子表示每周六、周日的1 : 10重启apache。   
  16. 0,30 18-23 * * * /usr/local/etc/rc.d/lighttpd restart   
  17. 上面的例子表示在每天18 : 0023 : 00之间每隔30分钟重启apache。   
  18. 0 23 * * 6 /usr/local/etc/rc.d/lighttpd restart   
  19. 上面的例子表示每星期六的11 : 00 pm重启apache。   
  20. * */1 * * * /usr/local/etc/rc.d/lighttpd restart   
  21. 每一小时重启apache   
  22. 23-7/1 * * * /usr/local/etc/rc.d/lighttpd restart   
  23. 晚上11点到早上7点之间,每隔一小时重启apache   
  24. 0 11 4 * mon-wed /usr/local/etc/rc.d/lighttpd restart   
  25. 每月的4号与每周一到周三的11点重启apache   
  26. 0 4 1 jan * /usr/local/etc/rc.d/lighttpd restart   
  27. 一月一号的4点重启apache  
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值