如何使用定时任务

1.使用crontab 执行shell脚本  sh内容为  cd /home/www;php index.php

2.使用crontab 执行curl命令 命令内容为 curl http://yourdomain.com/index.php

 

posted @ 2015-11-05 17:35  李照耀  阅读(189)  评论(0编辑  收藏  举报