#将时间切换成CST
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
#安装NTP
yum install ntp ntpdate -y
#启动ntpd daemon,持续校准时间
systemctl start ntpd
#重启
reboot
Linux时间自动同步
最新推荐文章于 2023-06-10 21:58:34 发布
#将时间切换成CST
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
#安装NTP
yum install ntp ntpdate -y
#启动ntpd daemon,持续校准时间
systemctl start ntpd
#重启
reboot