centos 配置 NTP 服务

简介 NTP是网络时间同步协议,就是用来同步网络中各个计算机的时间的协议。   NTP服务端配置 1. 检查是否已经安装 ntp 若未安装使用yum进行安装 查看是否安装 rpm -q ntp  yum安装命令 yum –y install ntp 1.1 启动服务( 如出现异常, 请先停止服务 ) service ntpd start 1.2 开放端口 123 /sbin/iptables -I INPUT -p tcp –dport 123 -j ACCEPT 2. 同步时间 ntpdate ntp.api.bz 返回与服务器相差时间, 即同步成功。 3. 同步硬件时 …