linux系统级定时任务 crontab 研究
来源:互联网 发布:Java restpath 编辑:程序博客网 时间:2024/04/28 22:52
增加定时任务
[root@hdp05 etc]# vi crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed
30 2 * * * root /usr/bin/bbksql_backup backup /data/mysql_backup backup backup 3306 /home/social/my.cnf
*/1 * * * * root /bin/sh /home/crontable/add_partition.sh
0 * * * 1 root /bin/sh /home/crontable/del_partition.sh
,sh 文件可以根据自己习惯放在哪个位置。
查看日志 :
[root@hdp05 etc]# tail -f /var/log/cron
重启:
[root@hdp05 etc]# service crond restart;
状态:
[root@node4 data]# service crond status;
开始:
[root@node4 data]# service crond start;
结束:
[root@node4 data]# service crond stop;
- linux系统级定时任务 crontab 研究
- Linux定时任务系统Crontab
- Crontab-Linux系统定时任务
- linux 系统下定时执行任务 crontab
- Linux系统下的定时任务Crontab
- Linux系统crontab 定时任务 补充
- 系统定时任务 crontab
- Linux Crontab 定时任务
- Linux 定时任务 crontab
- Linux 定时任务 crontab
- Linux Crontab 定时任务
- Linux Crontab 定时任务
- linux 定时任务crontab
- linux 定时任务crontab
- linux定时任务 crontab
- linux 定时任务 crontab
- Linux - crontab(定时任务)
- linux crontab定时任务
- LeetCode专题----动态规划
- NYOJ_228_士兵杀敌(五)
- change project compliance and jre to 1.5
- Eclipse的xml编译插件 安装XMLBuddy
- Tomcat为Cookie设置HttpOnly属性
- linux系统级定时任务 crontab 研究
- 统计同成绩学生人数
- div 加伪类:focus
- hello word
- 排列算法
- iOS-软键盘
- A + B Problem II hd 1002
- uvaLive 3263 That Nice Euler Circuit 欧拉定理
- SQL 生产随时唯一32位字符串