Linux + Thinkphp to perform scheduled tasks

service command
service crond restart //restart
 service crond reload //reload
 service crond start //start
 service crond stop //stop



Manage Process Commands
crontab -l //View list
 crontab -e //After modifying the process file, just add the task in the same way as editing the text


View logs
cat / var / log / cron


If you want to know the rules of time, please refer to this, it is written in great detail

http://www.cnblogs.com/peida/archive/2013/01/08/2850483.html

I wrote this rule 
to visit once every minute 

*/ 1 * * * * curl "http://127.0.0.1:8099/index.php/Home/Task/maketask";



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326446832&siteId=291194637