天天看点

CentOS6.5设置定时重启

Linux系统可以通过crontab定时任务来进行系统的定时重启。例如:

#!/bin/sh
#设置定时重启
echo "01 00 * * * root reboot"
#装载定时任务
crontab /etc/crontab
#生效服务
service crond restart
      

继续阅读