Linux 创建crontab定时任务

crontab -l 显示定时任务内容

crontab -e编辑定时任务内容

查看crontab服务状态:

service crond status

手动启动crontab服务:

service crond start

定时访问某个地址实例:

# .---------------- 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

#下面是每三分钟访问下该网址

*/3  *  *  *  * curl http://www.wowobao.com/taocan/show-166.html

#下面是每到1点10分访问下该网址

10  1  *  *  * curl http://www.wowobao.com/taocan/show-166.html

猜你喜欢

转载自blog.csdn.net/ging_ko/article/details/88557537