每分钟定时任务
我在 mysite.com/url1/url2/cronjob.php 中有一个文件,必须每分钟运行一次.我尝试了每种组合,但都无法成功.我应该在命令行中运行什么?谢谢.
I have a file in mysite.com/url1/url2/cronjob.php which has to be run every minute. I try every combination, but can't succeed. What should I run in command line? Thank you.
推荐答案
如果你在 crontab 中设置它,这有效:
In case you'd set it up in a crontab, this works:
*/1 * * * * /usr/bin/wget -O /dev/null http://example.com/cron.php
相关文章