建議

AIX 6.1 時區設定建議 -> POSIX timezone

原因

1.更好的效能

2.避免有使用NTP服務之主機升級AIX PATCH 後造成因時區判斷錯誤造成系統時間往回8小時之問題

如何檢查目前的設定

使用env|grep TZ

if the output format is similar to“TZ=Asia/Shanghai”, it is Olson timezone format.

If the output format is similar to “TZ=BEIST-8”, it is POSIX timezone format.  -> 這才是對的


如何變更時區為POSIX timezone

1. vi /etc/environment file

2. Change TZ environment variable to POSIX timezone format, like:

TZ=BEIST-8

3. Then reboot system

AIX 6.1 不同版本之時區顯示方式不同, 為避免在使用NTP服務時判斷錯誤,建議修改時區

顯示為POSIX timezone


date命令的輸出,AIX6100-TL05-SP02下 時區顯示為GMT+08:00,

oslevel -s
6100-05-02-1034
#date
Wed Oct 31 12:47:31 GMT+08:00 2012
#echo $TZ
Asia/Chongqing

而AIX6100-TL07-SP05下時間顯示為CST


#oslevel -s
6100-07-05-1228
#date
Wed Oct 31 12:58:50 CST 2012
#echo $TZ
Asia/Chongqing

 

創作者介紹
創作者 Thomas 的IBM BLOG 的頭像
thomas5613

Thomas 的IBM BLOG

thomas5613 發表在 痞客邦 留言(0) 人氣( 1106 )