在RHEL6.5中部署NTP服务

yum install ntp ntpdate
vi /etc/ntp.conf
 
 
允许查询的客户端网端
<blockquote>restrict 172.16.0.0 mask 255.255.0.0 nomodify notrap</blockquote>
 
 
 
chkconfig ntpd on
chkconfig ntpdate on
service ntpd start
service ntpdate start
iptables -I INPUT 行号 -m state --state NEW -m udp -p udp --dport 123 -j ACCEPT
service iptables save
 
在客户端测试
ntpq -p
ntpdate ntp.xxxx.com

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

Proudly powered by WordPress   Premium Style Theme by www.gopiplus.com