安装 NTP 服务
yum install ntp
![]()
将 NTP 的防火墙打开
NTP 服务使用的是 UDP 123 端口。
[code]# firewall-cmd --add-service=ntp --permanent
firewall-cmd --reload[/code]
[root@ossez zoneinfo]# firewall-cmd --add-service=ntp --permanent
Warning: ALREADY_ENABLED: ntp
success
[root@ossez zoneinfo]# firewall-cmd --reload
success
[root@ossez zoneinfo]#
![]()