window和linux计划任务

来源:互联网 发布:手机电影特效制作软件 编辑:程序博客网 时间:2024/05/20 16:32

一、安装crontab

yum install vixie-cron  #安装

chkconfig crond on  #设为开机启动先要安装chkconfig(yum install chkconfig)

service crond start  #启动

service crond stop  #停止

service crond restart  #重启

 * Linux: 於 crontab -e 加上 "* * * * * /usr/bin/curl --silent http://focussoftgroup.com/hxdaoyou/index.php/PublicApp/ScheduleTask?iInt=60 > /dev/null"

 * Windows: ""C:\Program Files\Apache24\php5\php.exe" D:\yjdata\www\www\hxce\index.php /PublicApp/ScheduleTask"
原创粉丝点击