how-to – Webuzo https://www.webuzo.com Multiuser Hosting Control Panel Thu, 15 Feb 2024 06:42:01 +0000 en-US hourly 1 https://sitepad.com/?v=5.1.6 https://www.webuzo.com/sitepad-data/uploads/2021/10/cropped-webuzo_icon_64-32x32.png how-to – Webuzo https://www.webuzo.com 32 32 Configure CentOS with NTP Time Servers https://www.webuzo.com/blog/configure-centos-with-ntp-time-servers/ Fri, 02 Aug 2019 05:39:38 +0000 http://www.webuzo.com/blog/?p=8538 Continue reading "Configure CentOS with NTP Time Servers"]]>

This article is to help you to configure the NTP Client to synchronize with NTP Servers.

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

# yum install ntp ntpdate

If yum is not installed, then just run the following command: sudo apt install yum. Once that’s installed you need to start and enable the ntpd service.

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

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.

# systemctl restart ntpd

Now check if NTP synchronization is enabled and running.

# timedatectl

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. Hope this article has helped you to Sync your server with NTP Time Servers.

]]>