CronTab命令实例
2024-08-30 17:37:58
每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
最新文章
- IDE-Sublime【2】-代码智能提示插件SublimeCodeIntel的安装
- the core or essence of a computer
- 基础知识 - Golang 中的正则表达式
- Windows Server 2008 R2 64bit兼容Chrome浏览器
- IOS开发--数据持久化篇之文件存储(一)
- 暑假集训(1)第二弹 -----Catch the cow(Poj3278)
- Jlink仿真器下载程序时出现Invalid ROM table!
- Hadoop-2.4.0安装和wordcount执行验证
- usaco月赛,2017.1总结
- Set 和 Map 数据结构
- SpringBoot SpringSession redis 共享 SESSION
- 面向对象之七大基本原则(javaScript)
- 【spring源码分析】IOC容器初始化(二)
- 冗余jar包识别神器 - loose.jar
- top-N 抽样
- Codeforces 454D - Little Pony and Harmony Chest
- html 空白汉字占位符
- PHP创建对象的几种形式
- IOS-涂鸦
- 编写高质量代码:Web前端开发修炼之道(四)
热门文章
- Centos7中 mysql5.7 用户 创建 、授权、远程登录
- Android 图片设置圆角 方法之二
- scrapy yield 回调函数不执行解决方案
- [MVC]View
- 在C#代码中应用Log4Net系列教程(附源代码)地址
- NYOJ-183赚钱啦,bellman//spfa水过,,题还是蛮变态的赶脚~~
- [HNOI2012] 永无乡 题解
- [HDU2157]How many ways??(DP + 矩阵优化)
- bzoj1059:[ZJOI2007]矩阵游戏【二分图匹配】
- 关于srand()rand()的用法