Modify Time Zone :
1>
Locate the appropriate time zone file/usr/share/zoneinfo/asia/shanghai
Replace the current/etc/localtime file with this file.
Or find a server that you think is standard time, and then
#scp [Email Protected]:/etc/localtime/etc/localtime
2>
Modify the/etc/sysconfig/clock file to:
Zone= "Asia/shanghai"
Utc=false
Arc=false
Temporary method:
tz= ' Asia/shanghai ';
Export TZ
Modified Date Time :
1>
Modify Date Time with date
#date-S 08/24/2006
#date-S 13:02:00
2>
Synchronous BIOS clock, forcing system time to be written to CMOS
#clock-W
Also, view Bois time with #hwclock-R
Linux modifies the system time zone
1. View the current time zone
# Vi/etc/sysconfig/clock
2. Modify the settings time zone
Method (1) # Tzselect Method (2 limited to Redhat Linux and CentOS) # Timeconfig
3. Copy the appropriate time zone file and replace the system default time zone
# cp/usr/share/zoneinfo/$ main time zone/$ times time zone/etc/localtime for Chinese servers execute: # cp/usr/share/zoneinfo/asia/shanghai/etc/localtime
4. Write the current time to the BIOS for permanent use (avoid failure after reboot)
# Hwclock
Linux permanently modifies the system time and time zone method