CentOS7配置ntp服务 安装ntp # yum install ntp开启ntp服务 # systemctl start ntpd 配置防火墙,允许其他主机可以连接到此主机上的ntp服务 # firewall-cmd --add-service=ntp --pe