日後會補充美國夏令及冬令時區轉換的問題。
CentOS 7
$ date
$ ls -l /etc/localtime
# timedatectl list-timezones
##*** Grep possible Asian timezones ***##
# timedatectl list-timezones | grep Asia
The syntax is as follows to set timezone and need to run as root user:
In this example, set timezone to America/Chicago
Change the current timezone in CentOS 6 and older
Type the following commands as root:
Verify new settings by typing the following two commands:
Ref :
https://www.cyberciti.biz/faq/centos-linux-6-7-changing-timezone-command-line/
沒有留言:
張貼留言