CentOS 修改時區

  • CentOS 6.9 x86_64
  • 想改成台北時區 Asia Taipei
cp /etc/localtime /root/old.timezone
rm -f /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime

操作畫面

[[email protected] ~]# date
Wed Mar  7 19:20:03 EST 2018
[[email protected] ~]# cp /etc/localtime /root/old.timezone
[[email protected] ~]# rm -f /etc/localtime
[[email protected] ~]# ln -s /usr/share/zoneinfo/Asia/Taipei /etc/localtime
[[email protected] ~]# date
Thu Mar  8 08:22:58 CST 2018
  • tech/centostimezone.txt
  • 上一次變更: 2021/01/16 14:40
  • jonathan