centos 更新服务器时间

方法一:
1:
yum install -y ntp
2:
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
3:
ntpdate us.pool.ntp.org
4:
查看一下:
date

 

你可能感兴趣的:(centos,centos,更新服务器时间)