content下设置定时命令
星期日 2017年12月31日 王佳明 技术 content linux 0人
安装Crontab, 我们可以先安装
1、centos
yum install vixie-cron crontabschkconfig crond onservice crond start
2、debian
apt-get install cron/etc/init.d/cron restart
登陆[root@localhost~]# 运行crontab -e
按i 输入 0 4 * * * /sbin/shutdown -r now
