Update a CentOS server time


One of the way to get up-to-date server time on CentOS is to update it from an authoritative time server.

To do this, you need to first install ntp and then start ntpd server as shown below:

→ sudo yum install ntp -y
→ sudo chkconfig ntpd on
→ sudo ntpdate pool.ntp.org
→ sudo service ntpd start

#To Check Date:
→ date

Thanks



Done!