Home >Backend Development >PHP Tutorial >linux计划任务如何每分钟执行一条URL

linux计划任务如何每分钟执行一条URL

WBOY
WBOYOriginal
2016-06-06 20:22:411258browse

因为我是thinkphp 实现计划任务那样的效果 如何每分钟都执行一条URL

<code>http://www.xxx.com/autoMessage-smsandemail?autokey=sdfi12ree3329487jseufewr323h19484p3hn&id=15@*@*@*@*@*@15

id=15@*@*@*@*@*@15 是代表了什么意思,求高手解答
</code>

回复内容:

因为我是thinkphp 实现计划任务那样的效果 如何每分钟都执行一条URL

<code>http://www.xxx.com/autoMessage-smsandemail?autokey=sdfi12ree3329487jseufewr323h19484p3hn&id=15@*@*@*@*@*@15

id=15@*@*@*@*@*@15 是代表了什么意思,求高手解答
</code>

用linux crontab吧
> crontab -e

规则

<code>*/1 * * * * /usr/bin/curl http://xx.com/user</code>

五个*分别代表,分,时,日,月,周,具体细节可以谷歌一下

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn