CentOS 7安装 NTP

安装 NTP 服务

yum install ntp

将 NTP 的防火墙打开

NTP 服务使用的是 UDP 123 端口。

[code]# firewall-cmd --add-service=ntp --permanent

firewall-cmd --reload[/code]

[[email protected] zoneinfo]# firewall-cmd --add-service=ntp --permanent Warning: ALREADY_ENABLED: ntp success [[email protected] zoneinfo]# firewall-cmd --reload success [[email protected] zoneinfo]#