Solutions for UTC time and CST time

Insert image description here
UTC Time: Coordinated Universal Time (UTC) is the main time standard used by different countries around the world to regulate clocks and time.

           :也就是零时区的时间

CST time: Central Standard
Time (USA) UT-6:00 (US cst time: zero zone minus 6 hours)

I encountered this problem this morning and didn’t react for a while;

Ado. Talent

1. yum -y install ntp install ntp
Insert image description here
2.ntpdate cn.pool.ntp.org synchronize time
Insert image description here
3. vi /etc/sysconfig/clock #Edit time configuration file

 ZONE="Asia/Shanghai"

    UTC=false                   #设置为false,硬件时钟不于utc时间一致

    ARC=false

Insert image description here
4.Set the time zone to Shanghai time zone

ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

5.ntpdate cn.pool.ntp.org #Align time
Insert image description here
6. Set the hardware time to be consistent with the system time and calibrate it

/sbin/hwclock --systohc

Insert image description here
7. Restart the system to confirm;

Insert image description here

Guess you like

Origin blog.csdn.net/Lcongming/article/details/120362165