Centos7 时间显示不对

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

 

posted @   苦逼yw  阅读(213)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示