Golfreeze.packetlove.com: Life style of Golfreeze Canon400D Family kammtan.com Jazz Freebsd Unix Linux System Admin guitar Music

All about unix linux freebsd and FAQ for Packetlove.com Web hosting , Mail hosting , VoIP + IP PBX server => command , shell script ,tool , crontab => Topic started by: golfreeze on พฤศจิกายน 28, 2011, 09:52:01 AM

Title: เปลี่ยน timezone เป็น ICT ใน centos และ debian
Post by: golfreeze on พฤศจิกายน 28, 2011, 09:52:01 AM
##ปรับ timezone ของ debian ให้เป็นเวลา malaysia

cp /usr/share/zoneinfo/Asia/Kuala_Lumpur /etc/localtime

หรือจะให้ปรับเป็น timezone ของประเทศไทยใน debian ก็
cp /usr/share/zoneinfo/Asia/Bangkok /etc/localtime


##ปรับ timezone ของ Centos ให้เป็นเวลา Thai ICT

cp /usr/share/zoneinfo/Asia/Bangkok /etc/localtime

เสร็จแล้วทำการ sync เวลากับ NTP server ครับผม

ntpdate clock.nectec.or.th

date ดูก็จะได้เวลา ณ ปัจจุบัน ครับผม