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