VPS centos 定时重启

679次阅读
没有评论
yum install vixie-cron crontabschkconfig crond onservice crond start

root 身份登录到命令行
输入 crontab -e
按下 a 键进入到编辑模式
输入 0 15 * * * /sbin/reboot #每天服务器当地时间 15 点重启,我选了西雅图的 VPS,15 点是北京时间上午 5 点
同时按下 ctrl+ c 退出编辑模式
按下 shift+: 输入 wq 退出 crontab

正文结束
 
欢迎加入 Telegram 群 https://t.me/Fit10086
文章教程好用记得留言支持啊
评论(没有评论)
载入中...