Centos7 时间显示不对

  • 修改系统时区
timedatectl set-timezone Asia/Shanghai
  • 安装NTP
yum -y install ntp
  • 使用 ntpdate 更新系统时间
ntpdate pool.ntp.org
  • 使用 date 查看时区是否正确
date
  • 启动ntpd daemon,持续校准时间 
systemctl start ntpd

 

posted @ 2023-04-08 15:58  苦逼yw  阅读(210)  评论(0编辑  收藏  举报