yum install ntpdate
ntpdate ntp1.aliyun.com
时间同步不生效,执行以下命令
//备份原有文件
mv /etc/localtime /etc/localtime.bak
//同步时间
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
yum install ntpdate
ntpdate ntp1.aliyun.com
时间同步不生效,执行以下命令
//备份原有文件
mv /etc/localtime /etc/localtime.bak
//同步时间
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime