การตั้งค่า Timezone บน Linux CentOS 7 มีวิธีการดังนี้ครับ
1. คำสั่ง List Time zone ครับ
[root@thaiserv ~]# timedatectl list-timezones Asia/Aden Asia/Almaty Asia/Amman Asia/Anadyr Asia/Aqtau Asia/Aqtobe ..... Asia/Bangkok ............. [root@thaiserv ~]#
2. ทำการตั้งค่า Time Zone เป็น Asia/Bangkok
[root@thaiserv ~]# timedatectl set-timezone Asia/Bangkok
3. ลองตรวจสอบการตั้งค่า Time Zone โดยใช้คำสั่ง
[root@thaiserv ~]# timedatectl
Local time: Wed 2017-10-18 06:51:45 +07
Universal time: Tue 2017-10-17 23:51:45 UTC
RTC time: Tue 2017-10-17 23:51:45
Time zone: Asia/Bangkok (+07, +0700)
NTP enabled: yes
NTP synchronized: yes
RTC in local TZ: no
DST active: n/a
[root@thaiserv ~]#เรียบร้อยแล้วครับ
No comments:
Post a Comment