Рубрики
NTP

NTP

Install NTP:
yum install -y ntp


firewalld open service:
firewall-cmd —add-service=ntp —permanent
firewall-cmd —reload


Start and enable:
systemctl start ntpd;
systemctl enable ntpd;
systemctl status ntpd;


Synchronize with NTP server and check date:
ntpq -p
date -R


Synchronize with the special server:
ntpdate -q ntp-server.url

Complete flow in one string:

yum install -y ntp; firewall-cmd --add-service=ntp --permanent; firewall-cmd --reload; systemctl start ntpd; systemctl enable ntpd; systemctl status ntpd; ntpq -p; date -R