CentOS 6.5 and win7 dual system time synchronization problem

 

Reprinted from: http://blog.sina.com.cn/s/blog_49d6d41c0101i41p.html

 

 

CentOS 6.5 and win7 dual system time synchronization problem

When the dual systems of win7 and centOS 6.5 are installed, you will find that the time difference between the two systems is 8 hours. If you adjust one and the other, you will get an error. How to solve this problem?

Step 1: Disable UTC time synchronization

[root@wolf ~ ]# vi /etc/sysconfig/clock

#Edit time profile ZONE="Asia/Shanghai"

UTC=false #Set to false, the hardware clock is not consistent with the UTC time

ARC=false

Another: You can also click System --> Administration --> Region & Time in the desktop view and disable the system time to use UTC.

 

Step 2:

[root@wolf ~ ]# ln -sf /usr/share/zoneinfo/Asia/Shanghai   /etc/localtime

#linux's time zone is set to Shanghai time zone

Step 3: [root@wolf ~ ]# ntpdate us.pool.ntp.org

If a prompt appears in the second step: the NTP socket is in use, exiting This means that your NTP service has been started, so you cannot use this command to synchronize time, then you can execute the following command

 

[root@wolf ~ ]# service ntpd stop #Stop NTP service Shutting down ntpd:

[ OK ] Then you can use: ntpdate us.pool.ntp.org

time synced

 

Note: If you don't have ntpdate installed, you can yum it: [root@wolf ~ ]# yum install -y ntpdate

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327095698&siteId=291194637