centos7 time synchronization zone (24 hours format)

When we install linux server system, the server sometimes due to time or time zone is incorrect cause a program error.

First, enter the date command to view the current time and time zone. Pay attention to the difference between CST EDT time zone, etc.

 

Describes a method of one kind of time synchronization with the time server. By installing ntpdate tool.

1.yum install ntpdate tool.

# yum -y install ntp ntpdate

2. Set the system time synchronized with the network time.

# ntpdate cn.pool.ntp.org

3. The system time to write hardware time

# hwclock --systohc

4. The enforcement system write time in CMOS.

# hwclock -w 

 

 

Guess you like

Origin www.cnblogs.com/javazxy/p/11758122.html