每2分钟 将date写入到time.log(以下的为奇数分钟运行)
*/2 * * * * date >> ~/time.log
1-59/2 * * * * date >> ~/time.log

每天的23:30分重新启动apache
30 23 * * *   /etc/init.d/apache2 restart
每月的1,10,20号的23:30分重新启动apache
30 23 1,10,20 * * /etc/init.d/apache2 restart

每月的1到15号的23:30重新启动apache
30 23 1-15 * * /etc/init.d/apache2 restart

晚上23点到早上6点之间每30分钟启动一次apache
*/30 23-7 * * * /etc/init.d/apache2 restart
0,30 23-7 * * * /etc/init.d/apache2 restart
0-59/30 23-7 * * * /etc/init.d/apache2 restart









最新文章

  1. IDE-Sublime【2】-代码智能提示插件SublimeCodeIntel的安装
  2. the core or essence of a computer
  3. 基础知识 - Golang 中的正则表达式
  4. Windows Server 2008 R2 64bit兼容Chrome浏览器
  5. IOS开发--数据持久化篇之文件存储(一)
  6. 暑假集训(1)第二弹 -----Catch the cow(Poj3278)
  7. Jlink仿真器下载程序时出现Invalid ROM table!
  8. Hadoop-2.4.0安装和wordcount执行验证
  9. usaco月赛,2017.1总结
  10. Set 和 Map 数据结构
  11. SpringBoot SpringSession redis 共享 SESSION
  12. 面向对象之七大基本原则(javaScript)
  13. 【spring源码分析】IOC容器初始化(二)
  14. 冗余jar包识别神器 - loose.jar
  15. top-N 抽样
  16. Codeforces 454D - Little Pony and Harmony Chest
  17. html 空白汉字占位符
  18. PHP创建对象的几种形式
  19. IOS-涂鸦
  20. 编写高质量代码:Web前端开发修炼之道(四)

热门文章

  1. Centos7中 mysql5.7 用户 创建 、授权、远程登录
  2. Android 图片设置圆角 方法之二
  3. scrapy yield 回调函数不执行解决方案
  4. [MVC]View
  5. 在C#代码中应用Log4Net系列教程(附源代码)地址
  6. NYOJ-183赚钱啦,bellman//spfa水过,,题还是蛮变态的赶脚~~
  7. [HNOI2012] 永无乡 题解
  8. [HDU2157]How many ways??(DP + 矩阵优化)
  9. bzoj1059:[ZJOI2007]矩阵游戏【二分图匹配】
  10. 关于srand()rand()的用法