Setting the time on Linux
To make sure your server always tells the correct time, follow these two instructions.
- Install the ntp daemon
ntpd will make sure your system clock is regularly sync’ed against the nearest atomic clock.yum install -y ntp &&\
chkconfig ntpd on &&\
ntpdate pool.ntp.org &&\
service ntpd start - Make sure your time-zone is correct
Set your time-zone to the right one with this command (for Central European Time)ln -sf /usr/share/zoneinfo/CET /etc/localtime
