We use the CentOS system in time, perhaps time zones often go awry, sometimes change after the Hai Shi will complete an error, and here's to learn a kind of Method to change this. If not installed, and you use the CentOS systems that use the command yum install ntp
Then: ntpdate us.pool.ntp.org.
Because CentOS is rhas source system and then compiled, many places are all the same.
rhas5 time zones on the paper form, and the current time zone file is in / etc / localtime
Then the other time zone file stored where?
In / usr / share / zoneinfo under
We use the East eight districts of Beijing, Shanghai, time
# Cp-f / usr / share / zoneinfo / Asia / Shanghai / etc / localtime
After the restart, date view of time, view the current time zone date-R, view / modify the time zone and time Linux
One time zone
1. View the current time zone
2. Modify the set time zone method (1)
Method (2) is limited to RedHat Linux and CentOS systems
Method (3) applies to Debian
3. Copy the appropriate time zone file, replace the CentOS system time zone files; or create links to files
cp / usr / share / zoneinfo / $ main time zone / $ time time zone / etc / localtime
In China, you can use:
cp / usr / share / zoneinfo / Asia / Shanghai / etc / localtime
Second, the time
1, check the time and date
2, set the time and date will be CentOS system date set to June 10, 1996 order
The CentOS system time set to 13:52:00 in order
3. Will write the current time and date BIOS, to avoid failure after reboot
Third, timing synchronization time
# / Usr / sbin / ntpdate 184.108.40.206> / dev / null 2> & 1
Then we complete the system on the set time zone changes CentOS problem.