NTP service enabled

Posted on 2025-09-16 09:33  k98091518  阅读(5)  评论(0)    收藏  举报

RHEL8

1.[Default]
yum install -y chrony

/etc/chrony.conf
server ntp.internal.local iburst

systemctl enable --now chronyd
systemctl status chronyd

chronyc sources -v


2
yum install -y ntp

/etc/ntp.conf
server ntp.internal.local iburst

systemctl enable --now ntpd

ntpd -p

[Firewall]
open port 123 UDP

firewall-cmd --add-service=ntp --permanent
firewall-cmd --reload