Why is it time to modify the Linux system with the date command?

  

You need to manually modify the time zone of the system to display the correct time.

1, find the corresponding time zone file /usr/share/zoneinfo/Asia/Shanghai to replace the current file with this file /etc/localtime



#cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime


2, modify the /etc/sysconfig/clock file, modify it to:



</pre>



</<a title="div" href=" ;http://www.xxx.com/divcss">div</a>>



<<a title="div" ; href="http://www.xxx.com/divcss">div</a>>ZONE="Asia/Shanghai"</<a title="div" href=" Http://www.xxx.com/divcss">div</a>>



<div>UTC=true</div>



<div>ARC=false</div>



<div> ;


3, generally only need these two steps, or execute the next sentence to correct the time



/usr/sbin/ntpdate –u 0.asia.pool.ntp.org


4. If the package is not installed ntp executed first, this statement



yum install -y ntp *

Copyright © Windows knowledge All Rights Reserved