Centos 7 系统定时重启

Posted liubiaos

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos 7 系统定时重启相关的知识,希望对你有一定的参考价值。

crontab -e         //系统命令

00 08 * * * root systemctl restart docker
00 08 * * * root reboot //写入需要重启的东西

查看是否执行 cd /var/log

cat -n cron | tail -n 500   

 

以上是关于Centos 7 系统定时重启的主要内容,如果未能解决你的问题,请参考以下文章