CentOs 7.0 implements timed tasks (regular access to Web pages)

Source: Internet
Author: User

1, CRONTAB-E, enter the editing interface
2, Input/2 * * * * * curl http://www.baidu.com, means every two minutes to visit the Web page
3, save exit, then service Crond Start Services
4, Chkconfig Crond on set to boot from
5,
Basic format:
* * * * command
Time-sharing and Lunar Week command
The 1th column represents minutes 1~59 per minute or/1
The 2nd column represents the hour 1~23 (0 for 0 points)
The 3rd column represents the date 1~31
The 4th column represents the month 1~12
The 5th list of the week 0~6 (0 for Sunday)

* * * */usr/local/etc/rc.d/lighttpd restart
The above example shows the 21:30 restart Apache per night

Crond does not support accurate to second

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.