vim /opt/reboot.txt

输入以下内容:
0 1 * * * /var/www/bin/apachectl restart
0 12 * * * /var/www/bin/apachectl restart
0 18 * * * /var/www/bin/apachectl restart

把reboot.txt加入到cron服务中
crontab /opt/reboot.txt

列出现有的时程表,检查一下有没有问题
crontab -l

重启cron服务
/sbin/service crond restart