: This article mainly introduces the linux scheduled task (crontab). If you are interested in the PHP Tutorial, refer to it. If you are a master, skip this step .. Make You Laugh
This is a linux scheduled task tutorial for beginners. it is relatively simple. if your scheduled task is complex, we recommend using shell scripts, etc,
1. install crontab. I apply yum install crontab directly (if the yum kids shoes are not supported, you can download the installation package and install it)
2. crontab-e opens the scheduled task file.
3. write the corresponding command in it, for example: */1 *****/usr/bin/curl 127.0.0.1/app/sundry/test // execute this url every minute
Run */5 * every five minutes ****
0 *** per hour ****
Execute 0 0 every day ***
Execute 0 0 every week ** 0
0 0 1 per month **
Execute 0 0 1 1 * every year *
The specific command execution methods are not described here.
Copyright statement: you can reprint it, but please mark the original link. thank you.
The preceding section describes the scheduled task (crontab) in linux, including related content, and hopes to help those who are interested in PHP tutorials.