Thay đổi Timezone trên CentOS

Để 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:



– Kiểm tra múi giờ hiện tại:
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
Labels:

Post a Comment

Blogger
Disqus
Facebook
Spot.IM

Emoticon
:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget