php服务地址:

http://192.168.2.117/web/index.php/buy/auctionselect

编写脚本service.sh,内容:

#! /bin/sh

crul http://192.168.2.117/web/index.php/buy/auctionselect

保存,chmod 777 service.sh

 

crontab -e

*/1 * * * * /bin/sh /www/web/dataauction/service.sh
保存,表示每分钟调用一次脚本

service crond restart
服务已启动

可以用命令查看
ps -ax | grep cron

posted on 2015-10-31 19:29  袁晓平  阅读(265)  评论(0编辑  收藏  举报