How to Install NTP and Sync Time on Linux Server (CentOS/RHEL)

In order to set the server's system time, and ensure that it will remain synchronized, we will install NTP (Network Time Protocol) as a service. After completing the installation below, your system will be fully configured with default NTP settings, and will automatically synchronize with the geographically nearest time server to match the server's timezone.
  1. Access your linux server via SSH as the root user.
  2. Execute the following command to automatically install and start the NTP service: 

    yum install -y ntp;chkconfig ntpd on;ntpdate pool.ntp.org;/etc/init.d/ntpd start;date

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to Access a Linux Server via SSH Terminal

When Linux dedicated servers are provisioned, they are often setup with a minimal OS...

How To Check if a Server is Online/Offline (Ping)

Is your server offline, or do you suspect it might be?The first step toward resolving the issue...

How To Check if a Server is Online/Offline (Ping)

Is your server offline, or do you suspect it might be?The first step toward resolving the issue...

How to Ping a Linux Server (Windows/Mac/Linux)

A very simple network connectivity test is to employ ping (ICMP) packets to test the...

How to Ping a Linux Server (Windows/Mac/Linux)

A very simple network connectivity test is to employ ping (ICMP) packets to test the...