Setting the time on Linux

To make sure your server always tells the correct time, follow these two instructions.

  1. 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

  2. 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

  1. No comments yet.

  1. No trackbacks yet.