How to config Time and date on CentOS 8
In this tutorial, I will show you how to configure time and date on CentOS 8.
The full list of official NTP Public Pool Time Servers: http://www.pool.ntp.org/en/
Actual guide: https://unihost.com/help/how-to-config-time-and-date-on-centos-8/
Install and configure NTP Daemon.
# dnf install chrony
Enable Chrony and start.
# systemctl enable chronyd
# systemctl start chronyd
Open Chrony configuration file.
# nano /etc/chrony.conf
Change to your own NTP server or others in your timezone.
Verify status.
# chronyc sources
Install NTPStat, it’s possible to display time synchronization status.
# dnf -y install ntpstat
# ntpstat
synchronised to NTP server (2a04:92c7:e:bd2::e6b9) at stratum 3
time correct to within 13 ms
polling server every 64 s
Configure time zone to make sure that the appropriate time zone is configured on the server please execute the command below.
# timedatectl
Local time: Thu 2020-03-26 13:32:07 CET
Universal time: Thu 2020-03-26 12:32:07 UTC
RTC time: Thu 2020-03-26 12:32:07
Time zone: Europe/Berlin (CET, +0100)
System clock synchronized: yes
NTP service: active
RTC in local TZ: no
Get the list of all the available time zones.
# timedatectl list-timezones
Set your time zone.
# timedatectl set-timezone Europe/London
# date
Thu Mar 26 12:59:44 GMT 2020
And there you have it. Time and date were successfully configured on CentOS 8.
#Unihost #NTP #CentOS #CentOS8 #stratum #time #timezone #date #server #dedicated
centos 8