Centos automatic command restart description:/sbin/servicecrondstart // start the service/sbin/servicecrondstop // disable the service/sbin/servicecrondrestart // restart the service/sbin/servicecrond... centos automatic command yum install crontabs www.2cto.com description: /sbin/service crond start // start the service/sbin/service crond stop // close the service/sbin/service crond restart // restart the service/sbin/service crond reload // reload configure to view the crontab Service Status: service crond status manually starts the crontab service: service crond star T check whether the crontab service has been set to start at boot. run the command: ntsysv add to start automatically: chkconfig-level 35 crond on www.2cto.com 1. crontab command function description: Set a timer. Syntax: crontab [-u <用户名称> ] [Configuration file] or crontab [-u <用户名称> ] [-Elr] Supplement: cron is a resident service that provides the timer function to allow users to execute preset commands or programs at specific times. You can use the timer function as long as you edit the timer configuration file. The configuration file format is as follows: Minute Hour Day Month DayOFWeek Command parameter number:-e edits the timer settings of this user. -L list the timer settings of this user. -R: delete the timer settings of this user. -U <用户名称> Specifies the user name to set the timer. 2. crontab format: basic format of www.2cto.com: ***** command minute-by-day weekly command column 1st indicates minute 1 ~ 59 every minute, use * or */1 to indicate 2nd columns to indicate hour 1 ~ 23 (0 indicates 0 points) column 3rd indicates date 1 ~ 31 column 4th indicates the month 1 ~ 12 column ID No. 0 ~ 6 (0 indicates Sunday) the command to be run in column 6th # Use the hash sign to prefix a comment # + ------ minute (0-59) # | + ----- hour (0-23) # | + ---- day of month (1-31) # | + --- month (1-12) # | + -- day of week (0-7) (Sunday = 0 or 7) # | # ***** command to be executed
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.