liunx crontab定时任务
来源:互联网 发布:伊尔戈斯卡斯生涯数据 编辑:程序博客网 时间:2024/06/05 09:27
/sbin/service crond start //启动服务/sbin/service crond stop //关闭服务/sbin/service crond restart //重启服务/sbin/service crond reload //重新载入配置 $ crontab -e 添加 (用户) $ crontab -l 查看服务 chmod 777 filename 赋予全部权限/etc/init.d/crond restart 重启服务 rsync -av meididi/ /soft/tomcat7/webapps/meididi 更新项目 service mysqld restart 重启mysql /etc/rc.d/init.d/mysql stop 停止mysql /etc/rc.d/init.d/mysql start 启动mysql tar -zxvf **.tar.gz搜索 可加-C 命令指定解压目录SHELL=/bin/bashPATH=/sbin:/bin:/usr/sbin:/usr/binMAILTO=rootHOME=/# 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# | | | | |# * * * * * sleep 10; echo "Have a good dream:)" >> /tmp/test.txt 45 14 * * * /bin/sh /root/dstj.sh >> /root/mysqldata/dstj.log 2>&1 59 23 6 * * /bin/sh /root/hhh.sh 45 14 * * * /bin/sh /root/mysqlbak.sh >> /root/mysqldata/mysqlbak.log 2>&1 10 11 7 12 * /bin/sh /root/myhhh.sh #10分11小时7号12月执行
阅读全文
0 0
- liunx crontab定时任务
- liunx定时执行任务命令 crontab使用
- Liunx系统定时任务时间设置Crontab的格式
- Liunx Crontab 定时的逻辑
- liunx 定时任务
- crontab 定时任务
- solaris 定时任务 crontab
- crontab 定时任务
- crontab定时任务详解
- Crontab 定时执行任务 (
- Linux Crontab 定时任务
- Linux 定时任务 crontab
- Linux 定时任务 crontab
- Linux Crontab 定时任务
- crontab 添加定时任务
- Linux Crontab 定时任务
- crontab定时任务
- 定时任务crontab 详解
- ubuntu14 安装scala详细教程
- 171211—链表书写&对类(book题)的润色
- ActiveMQ——5.Spring-JmsTemplate之浏览与执行
- 数据结构 课程大纲
- WebSocket与Socket.io
- liunx crontab定时任务
- Jetson-TX2安装opencv教程
- 数据库数据 在datagrideview 显示;
- ip获取所在城市名称接口-JAVA
- 如何在十分钟内插入1亿条记录到Oracle数据库?
- 有限状态机(使用状态模式C++实现)
- 字transient和volatile小结
- YARN-作者:IT十年(http://blog.csdn.net/matthewei6)。
- caffe利用训练好的模型进行实际测试