标签:访问 fse 原理 image 来源 mask sed correct 配置文件
一、NTP简介
1.NTP简介
NTP(Network Time Protocol,网络时间协议)是用来使网络中的各个计算机时间同步的一种协议。它的用途是把计算机的时钟同步到世界协调时UTC,其精度在局域网内可达0.1ms,在互联网上绝大多数的地方其精度可以达到1-50ms。(1s=1000ms) NTP服务器就是利用NTP协议提供时间同步服务的。
[root@web02 ~]# yum install ntp -y[root@web02 ~]# cd /etc/[root@web02 etc]# mv ntp.conf ntp.conf.bak[root@web02 etc]#cat > ntp.conf<<eofserver 127.127.1.0restrict 127.0.0.1restrict 10.0.0.0 mask 255.255.255.0fudge 127.127.1.1 startnum 10statsdir /var/log/ntp/logfile /var/log/ntp/ntp.logeof[root@web02 etc]# ntpq -p remote refid st t when poll reach delay offset jitter==============================================================================*LOCAL(0) .LOCL. 5 l 1 64 1 0.000 0.000 0.000 [root@web02 etc]# ntpstat synchronised to local net at stratum 6 time correct to within 7948 ms polling server every 64 s
[root@test ~]# yum install ntpdate[root@test ~]# crontab -e*/5 * * * * /usr/sbin/ntpdate 10.0.0.7 >/dev/null 2>&1标签:访问 fse 原理 image 来源 mask sed correct 配置文件
原文地址:http://www.cnblogs.com/lwf-blog/p/7289922.html