yum install ntp
ntpdate cn.pool.ntp.org
ntpdate 0.centos.pool.ntp.org
rm /etc/localtime
ln -s ../usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date
clock -w
clock --hctosys
虚拟机CentOS7与主机时间同步
最新推荐文章于 2023-04-14 11:45:28 发布
yum install ntp
ntpdate cn.pool.ntp.org
ntpdate 0.centos.pool.ntp.org
rm /etc/localtime
ln -s ../usr/share/zoneinfo/Asia/Shanghai /etc/localtime
date
clock -w
clock --hctosys