Redhat Linux - set time zone and time sync

  1. Set time zone to 
    1. #ln -sf /usr/share/zoneinfo/Hongkong /etc/localtime
  2. We also need to update the timezone at /etc/sysconfig/clock
    1. update the ZONE entry to: ZONE="Asia/Hong Kong"
  3. Check the current time
    1. #date
  4. ensure NTP server is set
    1. #nano /etc/ntp.conf
    2. make sure the NTP server IP address inside the config file is correct
  5. manually update the time
    1. #ntpdate IP_Address
  6. enable auto run at startup
    1. #chkconfig ntpd on
  7. restart the service
    1. #service ntpd restart


Popular Posts