How to change timezone in CentOS/RHEL 7 Server

Most Recent

Seo Services
วิธีการเปลี่ยน timezone ใน CentOS/RHEL 7 Server

สำหรับวิธีการเปลี่ยน timezone ใน CentOS/RHEL 7 จะต้องมีสิทธิ์เป็น root ในการดำเนินการ ซึ่งสามารถทำได้ตามขั้นตอนต่อไปนี้

1. แสดงรายการของ timezone ที่สามารถใช้ได้ด้วยคำสั่ง

#  timedatectl list-timezones

2. ค้นหา timezone ที่ถูกต้องตามที่ต้องการ

3. กำหนดค่าใหม่ เช่น เปลี่ยนเป็น Asia/Bangkok

# timedatectl set-timezone Asia/Bangkok

4. ตรวจสอบความถูกต้องด้วยคำสั่ง date

# date
# timedatectl



5. ตรวจสอบไฟล์ /etc/localtime

# ls -l /etc/localtime
lrwxrwxrwx. 1 root root 34 Jun 13  2018 /etc/localtime -> ../usr/share/zoneinfo/Asia/Bangkok

How to change timezone in CentOS/RHEL 7 Server How to change timezone in CentOS/RHEL 7 Server Reviewed by Wisoot Amatariyakul on 1:15 AM Rating: 5

No comments:

Powered by Blogger.