修改RedHat/CentOS系统时区

发表于 2015-12-24   |   分类于 技术

时区文件目录:

$ ls /usr/share/zoneinfo/
Africa      Asia       Canada   Cuba   EST      GB       GMT-0      
America     Atlantic   CET      EET    EST5EDT  GB-Eire  GMT+0      
Antarctica  Australia  Chile    Egypt  Etc      GMT      Greenwich  
Arctic      Brazil     CST6CDT  Eire   Europe   GMT0     Hongkong   
HST      iso3166.tab  Kwajalein  MST      NZ-CHAT   posix       
Iceland  Israel       Libya      MST7MDT  Pacific   posixrules  
Indian   Jamaica      MET        Navajo   Poland    PRC         
Iran     Japan        Mexico     NZ       Portugal  PST8PDT     
right    Turkey       UTC        Zulu     ROC       UCT        
WETStep2ROK           Universal  W-SUSingapore    US   zone.tab1

修改时区

$ sudo ln -s /usr/share/zoneinfo/EST /etc/localtime -f

保存

$ sudo hwclock --systohc
© 2017 Powered by Typecho
苏ICP备15035969号-3