1.编辑文件

vi /etc/sysconfig/clock

 

修改内容

ZONE="Asia/Shanghai"

2.覆盖旧时区文件

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

 

3.更新时间

①安装ntpdate,已安装可跳过

yum install -y ntpdate

 

②执行更新

ntpdate us.pool.ntp.org

 

.

相关文章:

  • 2021-12-21
  • 2022-02-01
  • 2022-01-20
  • 2021-08-19
  • 2021-08-25
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-06
  • 2022-01-12
  • 2022-12-23
  • 2022-02-21
  • 2021-06-18
相关资源
相似解决方案