Configure ntp timeservers on centos 7This purpose of this article is to help you to configure the NTP Client to synchronize with NTP Servers in CentOS 7.

Pre-requisites

This guide assumes the following conditions:

  • server with CentOS 7 installed
  • user with root-equivalent privileges

Install ntpd and ntpdate

First, You need to install the ntpd and ntpdate clients on your Linux host.

Run the following command as root:

yum install ntp ntpdate

If yum is not installed, then simply run the following command to install it:

rpm -Uhv https://mirrors.radwebhosting.com/centos/7/os/x86_64/Packages/yum-3.4.3-168.el7.centos.noarch.rpm

Start and Enable ntpd Service

Once that’s installed you need to start and enable the ntpd service.

systemctl start ntpd
systemctl enable ntpd
systemctl status ntpd

Configure NTP Servers

Now run the following command to configure the NTP Servers.

ntpdate -u -s 0.centos.pool.ntp.org 1.centos.pool.ntp.org 2.centos.pool.ntp.org

Command tells the ntpdate to use an unprivileged port for outgoing packets with the -u switch and to write logging output to the system syslog facility using the -s switch

Next, restart the ntpd daemon by running the following command:

systemctl restart ntpd

Check NTP Synchronization

Now check if NTP synchronization is enabled and running.

timedatectl

Set Hardware Clock

And for the last, you need to set the hardware clock to the current system time using the -w switch.

hwclock -w

You’ve now successfully set your NTP client on CentOS 7. Hope this article has helped you to Sync your server with NTP Time Servers.

5.0 from 24 reviews
Ratings and reviews
  • 5.0 from 24 reviews
  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Todd Greenwald

    We're a single server company that manages our box ourselves. We had to move to a new NOC in a pinch and we chose Rad Web Hosting. They were thorough and complete in the phase of learning their capabilities (their chat access is excellent), and they delivered 100% in what they said they offered. We had a new server shipped to them from Dell, they installed and provisioned immediately and turned the machine over to us ready to go with both IDRAC via VPN and Internet availability. Whenever we have had questions they have been thorough and prompt. In our >20 years of business, this is by far the best NOC we've been in.

  • Artist Of

    As kindly as I can say: got some really bad spam from these people and did a search and found this web hoster as a provider of them at the time. I am hoping this complaint will further facilitate ending this, spam harassment.I must update this review. I finally conquered this problem sometimes you just have to comp[lain enough about some things. Stay radical Rad Web.

  • SiteCheck Admin

  • LARRY JOHNSON

    The only hosting provider I trust with my VPS

  • ArticleSurge Editor (ArticleSurge.com)

    Very reliable and more helpful than big host companies I've used previously. Very glad to have discovered it about three years ago. I hope they continue to be supportive. The prices are good because they do not have increased renewal fees like almost everyone else.

  • SiteCheck Admin

  • LARRY JOHNSON

    The only hosting provider I trust with my VPS

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

5.0 from 30 reviews
Ratings and reviews
  • 5.0 from 30 reviews
  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Todd Greenwald

    We're a single server company that manages our box ourselves. We had to move to a new NOC in a pinch and we chose Rad Web Hosting. They were thorough and complete in the phase of learning their capabilities (their chat access is excellent), and they delivered 100% in what they said they offered. We had a new server shipped to them from Dell, they installed and provisioned immediately and turned the machine over to us ready to go with both IDRAC via VPN and Internet availability. Whenever we have had questions they have been thorough and prompt. In our >20 years of business, this is by far the best NOC we've been in.

  • Artist Of

    As kindly as I can say: got some really bad spam from these people and did a search and found this web hoster as a provider of them at the time. I am hoping this complaint will further facilitate ending this, spam harassment.I must update this review. I finally conquered this problem sometimes you just have to comp[lain enough about some things. Stay radical Rad Web.

  • SiteCheck Admin

  • LARRY JOHNSON

    The only hosting provider I trust with my VPS

  • ArticleSurge Editor (ArticleSurge.com)

    Very reliable and more helpful than big host companies I've used previously. Very glad to have discovered it about three years ago. I hope they continue to be supportive. The prices are good because they do not have increased renewal fees like almost everyone else.

  • SiteCheck Admin

  • LARRY JOHNSON

    The only hosting provider I trust with my VPS

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Tab Fitts

    I don't know what this Alex Coleman dude is talking about. Rad Web Hosting has the best support I've ever experienced. They are super helpful and hardworking. If these people that are posting negative reviews had a bad experience, it's most likely technology ignorance or they just flat out messed something up themselves.

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

5.0 from 10 reviews
Ratings and reviews
  • 5.0 from 10 reviews
  • LARRY JOHNSON

    The only hosting provider I trust with my VPS

  • SiteCheck Admin

  • ArticleSurge Editor (ArticleSurge.com)

    Very reliable and more helpful than big host companies I've used previously. Very glad to have discovered it about three years ago. I hope they continue to be supportive. The prices are good because they do not have increased renewal fees like almost everyone else.

  • LARRY JOHNSON

    The only hosting provider I trust with my VPS

  • SiteCheck Admin

  • Artist Of

    As kindly as I can say: got some really bad spam from these people and did a search and found this web hoster as a provider of them at the time. I am hoping this complaint will further facilitate ending this, spam harassment.I must update this review. I finally conquered this problem sometimes you just have to comp[lain enough about some things. Stay radical Rad Web.

  • Todd Greenwald

    We're a single server company that manages our box ourselves. We had to move to a new NOC in a pinch and we chose Rad Web Hosting. They were thorough and complete in the phase of learning their capabilities (their chat access is excellent), and they delivered 100% in what they said they offered. We had a new server shipped to them from Dell, they installed and provisioned immediately and turned the machine over to us ready to go with both IDRAC via VPN and Internet availability. Whenever we have had questions they have been thorough and prompt. In our >20 years of business, this is by far the best NOC we've been in.

  • LARRY JOHNSON

    Very great hosting and servers. Have used for years and plan to continue on! Thanks Rad Web Hosting!

  • Bitcoin Linux

    Great service and support after the sale. I much like the renewal price is the same as the price I signed up with. No surprises and no games!

  • SiteCheck Admin

    Excellent hosting service all the way through! From the helpful staff to their consistent performance and affordability. So much better than the big guys!

Avatar of editorial staff

Editorial Staff

Rad Web Hosting is a leading provider of web hosting, Cloud VPS, and Dedicated Servers in Dallas, TX and Phoenix, AZ.
lg