我在 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
这篇关于每分钟定时任务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!