(个人学习记录)
一、使用root权限修改
su -
二、删除本地时间
rm -rf /etc/localtime
三、软链接
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
四、date看一下
date和现在时间一样就结束了
五、还是不准解决方法
安装ntp:yum -y install ntp
开机自启
systemctl start ntpd
systemctl enable ntpd
(个人学习记录)
su -
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date和现在时间一样就结束了
安装ntp:yum -y install ntp
开机自启
systemctl start ntpd
systemctl enable ntpd