ntp服务搭建
1.首先放开ntp端口123
vi /etc/sysconfig/iptables 添加一条
-A INPUT -p udp -m state --state NEW -m udp --dport 123 -j ACCEPT
2. yum install ntp ntpdate -y
3. vi /etc/ntp.conf 修改ntp配置
4./etc/init.d/ntpd restart 重启ntp
ntpq -p 查看ntp状态
5.在客户端执行 ntpdate 192.168.1.223(服务端ip),如下即成功
6.chkconfig ntpd on 设置ntp开机自启