本文共 192 字,大约阅读时间需要 1 分钟。
安装ntpdate
yum install ntpdate
删除自带的时间文件
rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
修改定时任务
crontab -e
每天5点同步一次时间
0 5 * * * /usr/sbin/ntpdate -u ntp1.aliyun.com
转载地址:http://iihof.baihongyu.com/