1、vi /etc/sysconfig/clock   #编辑文件
ZONE="Asia/Shanghai"
UTC=false                          #设置为false,硬件时钟不于utc时间一致
ARC=false


2、ln -sf /usr/share/zoneinfo/Asia/Shanghai    /etc/localtime    #linux的时区设置为上海


3、ntpdate asia.pool.ntp.org    #对准时间,需要先安装ntp服务器 yum install ntp


4、/sbin/hwclock --systohc   #设置硬件时间和系统时间一致并校准

相关文章:

  • 2021-11-17
  • 2021-12-18
  • 2021-06-16
  • 2021-10-24
  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-10-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-06
  • 2021-06-14
  • 2021-11-04
  • 2021-12-26
相关资源
相似解决方案