Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • Online Gaming: Ping vs Frames Per Second (FPS) Gaming
  • Use Google Location Sharing to Keep Track of Loved Ones Google Software/Tips
  • How to Make a Poll on YouTube Channel How-To
  • HDG Explains : What Is (AWS) Amazon Web Services? Amazon Web Services
  • How to Access Mac Shared Folder From Windows 10 How-To
  • Best hp 50g graphing calculator 2020

    Best hp 50g graphing calculator 2020. 1 - ARCHANGEL Top Reviews What a ride! Earth's balance of good and evil is badly

  • Why Does Instagram Say “User Not Found”? Computer Tips
  • Easily Find Full Length Movies on YouTube How-To

Configure CentOS to Sync with NTP Time Servers

Posted on October 9, 2020 By bilal 1983 No Comments on Configure CentOS to Sync with NTP Time Servers

Greetings to fellow admins. Over the years, I have come across many questions about how to properly configure our Linux hosts to synchronize time with our corporate NTP servers.

So, I thought, why not create an article that describes in its simplest form the correct way to configure an NTP client to synchronize with NTP servers.

Configure CentOS to Sync with NTP Time Servers

So let’s get started!

CentOS synchronization with NTP time servers

First of all, we need to install the ntpd and ntpdate clients on our Linux host. I am using CentOS but same on Ubuntu etc.

# yum install ntp ntpdate

If yum is not installed, just run the following command: sudo apt install yum. After installing it, we need to start and enable the ntpd service.

# systemctl start ntpd # systemctl enable ntpd # systemctl status ntpd

Now that this has been fixed, let’s 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

We tell ntpdate to use an unprivileged port for outgoing packets using the -u switch, and write the log output to the syslog tool using the -s switch.

Then let’s restart the ntpd daemon.

# systemctl restart ntpd

Now let’s check if NTP sync is enabled and working.

# timedatectl

And as a last hurray, we’ll set the hardware clock to the current system time with the -w switch.

# hwclock -w

Congratulations! You have successfully configured your NTP client on CentOS.

Hope you enjoyed the article!

Share this:

  • Facebook
  • X
Linux Tags:CentOS synchronization with NTP time servers, Configure CentOS to Sync with NTP Time Servers

Post navigation

Previous Post: Configure NGINX Reverse Proxy – Step by Step
Next Post: Setting Up A Microsoft Azure Files File Share

Related Posts

  • How to Find and Change MAC Address How-To
  • How to Remove Metadata on Windows, Mac And Linux How-To
  • An Introduction To The Security Linux Distro “Tails” Linux
  • What is Sudo in Linux command? Linux
  • Calculadora Paypal : Calcular Comisiones de Paypal Calculator
  • All zoom keyboard shortcuts and how to use them Computer Tips

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • – 436
  • – 939
  • 1Win AZ Bonuslar, Mobil Tətbiq və Mərc Marketləri – 376
  • 1xBet giriş, güzgü 1 xBet Azərbaycanda rəsmi sayt – 413
  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • B1 Bet Aviator: Jogo de Cassino Online Tutorial Passo a Passo 202 – 14
  • blog
  • Calculator
  • Computer Tips
  • Cool Websites
  • Dasinmaz emlak elanlari, ev elanlari, ev alqi satqisi, kiraye evler, torpaq, obyekt, bina, bina ev, mənzil, villa, kreditle satilan evler – 814
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorial
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • бонусы до 250%, официальный сайт в Узбекистане – 69
  • Мостбет Уз Ставки на спорт и казино в букмекерской конторе Mostbet Uz – 527
  • ベラジョンカジノの出金方法一覧【2023年 最新】出金限度額・出金の流れ・出金手数料・出金条件 – 466
  • How to Listen to YouTube with Screen OFF (Android & iOS)
  • Youtuber Onlyfans Try Now OnlyFans Sites!
  • How to Access Your Android From Computer Using SSH [No ROOT]
  • Onlyfans Cuckold Wife – Try Online Beautiful-Nudes
  • How to Convert Video on Android with FFmpeg Using Termux
DMCA.com Protection Status

Recent Posts

  • How to Automatically Mute your Mac When it Wakes Up From Sleep
  • Get Android O Custom Navigation Bar on any Android Running Nougat [No Root]
  • How to Access Your Android From Computer Using SSH [No ROOT]
  • How to Convert Video on Android with FFmpeg Using Termux
  • Now Upload Photos To Instagram From Computer Without any Software

Recent Comments

  1. Instagram stories not working/loading? Try These 9 Fixes on Can’t update PS5 system software? Try These 10 Fixes
  2. How to Link to a Specific Part Of A Webpage & Share it on Best PDF to Word Converter Online (Free Without Email)
  3. See What’s Taking up Space on Your Hard Drive on 7 best 3D scanning apps for Android and iOS
  4. Make your Devices Read Out Text, With Text to Speech on 9 Best 10K Running Apps for 2023
  5. How to Find your Router’s IP Address on How to Fix Apple CarPlay Not Working? 7 Possible ways
  • KeepVid Music: Use Online Music as your Personal Music Library
  • How To Add Keyframes In Adobe Premiere Pro How-To
  • How to Check Your Google and Facebook Connected Apps Computer Tips
  • How to Go Live on Instagram From PC How-To
  • Best 6 Nintendo Switch Apps of 2022 Gaming
  • How To Check Your Printed Documents History On Windows 10 Windows 10
  • 11 Fixes for When Your AirPods Don’t Show Up in the Find My App Fixes
  • How to Quickly Unsubscribe From Bulk Mail How-To

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version