Để thay đổi timezone của VPS CentOS theo đúng múi giờ Việt Nam, các bạn hãy thực hiện như sau:
1# date
– Cập nhật lại timezone sang
Asia/Ho_Chi_Minh:
12# rm -f /etc/localtime
# ln -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
Ngoài ra, bạn có thể lựa chọn các timezone khác tại
/usr/share/zoneinfo/
hoặc tham khảo Database Timezones
– Đồng bộ Network Time Protocol NTP về server Việt Nam:
Cài đặt NTP
1# yum install -y ntpdate
Đồng bộ NTP server Việt Nam
1# ntpdate vn.pool.ntp.org
Tuy vậy, hiện tại chỉ có 4 servers tại Việt Nam nên bạn có thể cân nhắc sử dụng server Asia
1# ntpdate asia.pool.ntp.org
Danh sách các servers bạn tham khảo tại: NTP Pool Servers
Post a Comment
Click to see the code!
To insert emoticon you must added at least one space before the code.