• 查看系统支持的时区列表
timedatectl list-timezones
  • 使用 date -R 查看时区是否正确
date -R
Centos7 时间不正确修复
  • 修改时区
timedatectl set-timezone Asia/Shanghai

 安装NTP

sudo yum -y install ntp

使用 ntpdate 更新系统时间

ntpdate pool.ntp.org

使用 date 查看时区是否正确

date
Centos7 时间不正确修复

启动ntpd daemon,持续校准时间 

systemctl start ntpd

查看ntpd daemon是否启动

systemctl status ntpd
Centos7 时间不正确修复

 

相关文章:

  • 2022-03-09
  • 2021-12-01
  • 2021-06-16
  • 2022-12-23
  • 2021-10-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-08-16
相关资源
相似解决方案