Using CentOS, encountered local time is not on, direct knocking command: Date-s "2014-12-25 15:15:15" is immediately effective, but after reboot, the system time is still original.
After looking for information, make a summary.
My CentOS is installed on the virtual machine. The virtual machine has a split-system time and hardware time. One of the modifications is that there is no way to work, and both must be changed.
1.Date {View current local time}
2.hwclock--show {Time to view hardware}
3. If the hardware time is not correct, then the hardware time to modify,
4.hwclock--set--date ' 014-12-15 15:15:15 ' {set hardware time}
5.Hwclock--hctosys {Set system time and hardware time synchronization}
6.clock-w {Save Clock}
7. Finally, after restarting theinit 6 , check if the system time is really in effect!!!! 1
How to permanently modify system time under CentOS s