如何使用定时任务

it2022-07-01  115

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

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

 

转载于:https://www.cnblogs.com/lizhaoyao/p/4940271.html


最新回复(0)