Operation Steps
1. Confirm that crontab is installed:
Executing the crontab command if you report command not found, it indicates that you did not install
2. Install Crontab
Perform Yum install-y Vixie-cron
3. Confirm that the installation is successful:
Execute crontab-l
4. See if you have set up the automatic boot
Chkconfig--list Crond
5. Start crontab
Service Crond Start
If the installation is still not supported may be a permission issue
Whether the script is written correctly and whether the shell script has execute permissions. If everything is not working properly, use the following methods
Make root user's crontab effective
Crontab-u Root/var/spool/cron/root
Restart the crontab service
Service Crond Restart
Errors that may occur
"Cronfile1": 2:premature EOF
Errors in crontab file, can "T install.
Add a blank line at the end of the crontab file to resolve the problem.
"/tmp/crontab. NINM91 ": 1:bad Day-of-week
Errors in crontab File,can "T install
According to the tip, the first line of the week was written incorrectly.
Crontab-e Save, Crond will detect the time format, if the time format is not correct will be error errors in crontab File,can ' t install, or a very user-friendly settings.