Tzselect
Execute tzselect Command--Select asia--> Select china--> Select East China-beijing, Guangdong, Shanghai, etc--> and enter 1
Select (5) Asia time zone
Please identify a, so, time zone rules can be set correctly.
Please select a continent or ocean.
1) Africa
2) Americas
3) Antarctica
4) Arctic Ocean
5) Asia
6) Atlantic Ocean
7) Australia
8) Europe
9) Indian Ocean
Pacific Ocean
One) None-i want to specify the time zone using the Posix TZ format.
#? 5
Select Country (9) China
Please select a country.
1) Afghanistan Israel) Palestine
2) Armenia Japan) Philippines
3) Azerbaijan Jordan PNs) Qatar
4) Bahrain Kazakhstan) Russia
5) Bangladesh Korea (north), Saudi Arabia
6) Korea (south) Bhutan) Singapore
7) Brunei Kuwait) Sri Lanka
8) Cambodia Kyrgyzstan) Syria
9) Laos) Taiwan
(Cyprus) Lebanon) Tajikistan
(one) East Timor) Macau Thailand
(Georgia) Malaysia) Turkmenistan
Hong Kong) Mongolia Arab Emirates
India) Myanmar (Burma) Uzbekistan
(Indonesia) Nepal) Vietnam
Iran) Oman Yemen
() Iraq) Pakistan
#? 9
Select (1) Shanghai Current time zone
Please select one of the following time zone regions.
1) East China-beijing, Guangdong, Shanghai, etc.
2) Heilongjiang (except Mohe), Jilin
3) Central China-sichuan, Yunnan, Guangxi, Shaanxi, Guizhou, etc.
4) Most of Tibet & Xinjiang
5) West Tibet & Xinjiang
#? 1
Save (1) Yes time zone
The following information has been given:
China
East China-beijing, Guangdong, Shanghai, etc.
Therefore tz= ' Asia/shanghai ' would be used.
Local time is now:wed 4 14:29:25 CST 2016.
Universal time is now:wed 4 06:29:25 UTC 2016.
is the above information OK?
1) Yes
2) No
#? 1
When the time zone is selected after executing the tzselect command, the time zone does not change, but the command finally prompts you to perform
tz= ' Asia/shanghai '; Export TZ
Modify the time zone configuration file
Vi/etc/sysconfig/clock
Zone= "Asia/shanghai"
Link to Shanghai time zone
Rm-rf/etc/localtime
Ln-s/usr/share/zoneinfo/asia/shanghai/etc/localtime
View time zone has changed
Cat/etc/sysconfig/clock
The time zone of the system is defined by the contents of/etc/localtime.
This file is the only for evaluation by System-config-date, does not rely on its
Contents elsewhere.
Zone= "Asia/shanghai"
NTP server networking Synchronization
US time synchronization Server Ntpdate time.nist.gov
China National Timing Center Ntpdate 210.72.145.44
NTP server (Shanghai) ntpdate ntp.api.bz
Fudan Ntpdate ntp.fudan.edu.cn
Microsoft Company Timing Host (USA) Ntpdate time.windows.com
Tai Police Large Service Center (Taiwan) ntpdate asia.pool.ntp.org
If prompted for an error no server suitable for synchronization found
Workaround add-u parameter to synchronize with host over firewall
Like Ntpdate-u 210.72.145.44.
Date Time View
Restart Server Test Change results
Reboot or INIT6