1.更改时间为上海时区:
rm -rf /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2.NTP同步时间:
apt-get update
apt-get install ntp ntpdate -y
3.更新时间:
service ntpd stop #停止ntp服务
ntpdate us.pool.ntp.org #同步ntp时间
service ntpd start #启动ntp服务

标签: none

评论已关闭