鸟哥的ntp http://linux.vbird.org/linux_server/0440ntp.php 现在的网络由于各种原因 对于时间同步要求很高——比如银行,某些网站论坛。 配置ntp就是他们要面对的一个问题,在ntp中有ntp,xntp等各种软件。我们选用Rad Hat中标配的ntp。 首先让大家了解下ntp: 使用端口123 协议 UDP 用处 同步网络时钟 首先到下载ntp-4.1.1-1.i386.rpm ( ftp://rpmfind.net/linux/redhat/7.3/en/....1.1-1.i386.rpm ) 不下载最新的,因为...
by sunmsn - BSD文档中心 - 2009-12-22 08:39:48 阅读(1845) 回复(0)
1.How to act as a ntp client hosta# cd /etc/inet hosta# cp ntp.client ntp.conf - Edit the ntp.conf as follows: bash-3.00# more ntp.conf # xntpd configuration file for a system operating in client mode # driftfile /var/ntp/ntp.drift statsdir /var/ntp/ntpstats server 192.168.103.200 - start the ntp clinet for solaris 8/9 hosta# /etc/init.d/xntpd start for solaris 10 bash-3.00# svcs|grep n...
中国大概能用的ntp时间服务器地址本上都能使 server 133.100.11.8 prefer server 210.72.145.44 server 203.117.180.36 server 131.107.1.10 server time.asia.apple.com server 64.236.96.53 server 130.149.17.21 server 66.92.68.246 server www.freebsd.org server 18.145.0.30 server clock.via.net server 137.92.140.80 server 133.100.9.2 server 128.118.46.3 server ntp.nasa.gov server 129.7.1.66 s...
rpm -ivh ntp vi /etc/ntp.conf server pool.ntp.org restrict default nomodify notrap noquery restrict 192.168.0.0 mask 255.255.255.0 notrust nomodify notrap 从192.168.0.1-192.168.0.254的服务器都可以使用我们的ntp服务器来同步时间。 注释一行 restrict default ignore #vi/etc/ntp/step-tickers 加入一行 pool.ntp.org 这样每次ntpd启动时,会自动连接该国际标准时间服务器; chkconfig --level 35 ntpd on # service...
这几天一个user问我ntp时间服务器配置的问题,于是又温习了一下,把容易遇到的问题总结一下。 以两台redhat AS4为例 server1:主机A server2:主机B 把A作为server,B作为client 主要对A进行配置,client段不用进行特殊配置 首先,先检查两机的ntp是否已经安装:rpm -qa|grep ntp 如果没有安装可以自行去安装,这里就不多说了。接下来讲如何配置 1.设定ntp服务端的配置文件: /etc/ntp.conf ntp.conf里主要可以使用如下几个...
There are four stratum 2 servers in the University you can use. These have the DNS aliases: ntp0.cam.ac.uk ntp1.cam.ac.uk ntp2.cam.ac.uk ntp3.cam.ac.uk rdate -s X 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/32515/showart_364360.html
#ntpdate time.nist.gov #tail /etc/ntp.conf server 192.43.244.18 server 127.127.1.0 fudge 127.127.1.0 stratum 15 restrict default ignore restrict 10.0.0.0 mask 255.255.255.0 restrict 127.0.0.0 mask 255.0.0.0 restrict 192.168.2.0 mask 255.255.255.0 noquery nopeer notrust driftfile /etc/ntpd.drift #ntpd -p /var/run/ntpd.pid # ntpq -p remote refid st t when poll reach delay of...
本帖最后由 xiaochuanjiejie 于 2011-12-02 18:26 编辑 一台服务器,预配置为集群的ntp服务器,此服务器可以正常上网,防火墙开通123端口。谷歌查了,方法也都尝试了,仍是报错,希望有高手指点,谢谢! 环境如下:集群的内网IP段(network:172.16.1.0 mask:255.255.255.0)[code][root@zqlxbak01 ~]# ping www.baidu.com PING www.a.shifen.com (61.135.169.125) 56(84) bytes of data. 64 bytes from 61.135.169.125: ...