When compiling the Linux kernel, we found the clock synchronization problem, the solution is as follows:
Find. -type F | Xargs-n 5 Touch or find./-name "*"-exec Touch {}/
Make clean
Make
or modify the machine time:
[Host@localhost ~]$ sudo date-s 07/04/2010
Sun June 4 00:00:00 HKT 2010
[San@localhost ~]$ Date
Sun June 4 00:00:03 HKT 2010
[Host@localhost ~]$ sudo date-s 20:36:00
Sun June 4 20:36:00 HKT 2010 When the system starts, the Linux operating system reads the time from CMOS to the system time variable, and then modifies the time by modifying the system time. To keep the system time consistent with the CMOS time, Linux writes the system time to the CMOS at intervals. Since this synchronization takes place every once in a while (about 11 minutes), after we perform date-s, if the machine is immediately reset, the modification time may not be written to CMOS, which is the cause of the problem. If you want to ensure that the changes take effect, you can execute the following command. Cp-f/usr/share/zoneinfo/asia/shanghai/etc/localtime or Ln–s/etc/localtime/usr/share/zoneinfo/asia/shanghai [ Host@localhost ~]$ sudo clock-w [host@localhost ~]$ date Sun June 4 20:36:23 HKT 2010 Modify/etc/sysconfig/clock zone= "asia/s Hanghai "
Utc=0
Arc=0