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

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

WBOY
Release: 2016-06-06 20:22:41
Original
1232 people have browsed it

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

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

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

回复内容:

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

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

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

用linux crontab吧
> crontab -e

规则

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template