荔园在线
荔园之美,在春之萌芽,在夏之绽放,在秋之收获,在冬之沉淀
[回到开始]
[上一篇][下一篇]
发信人: hanghai.bbs@bjsing.net (新型土拔鼠), 信区: Linux
标 题: 建立、配置时间服务器
发信站: DQPI (Mon Jan 13 08:32:37 2003)
转信站: SZU!news.tiaozhan.com!news.bjsing.net!DQPI
在网络里面统一时间是一件很重要的事情,如果网络内的主机时间各自为政,
版本控制等其他一些对时间要求很苛刻的网络应用里面是非常重要的。
现在我想把自己建立时间服务器的过程跟步骤写出来,跟大家共享。
先下在源代码http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.1.1a.tar.gz,
然后编译、安装;
编译、安装完成后,需要配置,
具体的配置:
1.设定时间服务器:
#touch /etc/ntp.conf 生成配置文件ntp.conf
===================== ntp.conf ===============
server 127.127.1.0
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp.drift
broadcast 10.10.10.255
#touch /etc/ntp.drift 生成ntp.drift文件
#ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid 启动时间daemon
2.客户端的配置
#touch /etc/ntp.conf
================ /etc/ntp.conf ==============>
server the_time_server
driftfile /etc/ntp.drift
#touch /etc/ntp.drift
#ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid start the Network Time Protocol
daemon
3.将该机器即作为Internet标准时间服务器的客户端,以便得到准确的时间
又将该机器作为局域网内的标准时间源、时间服务器,向网络提供标准时间
#touch /etc/ntp.conf
================== /etc/ntp.conf ==============>
server time.nist.gov
server ntp.ise.canberra.edu.au
server 127.127.1.0
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp.drift
broadcast 10.10.10.255
#touch /etc/ntp.drift
--
( (
路上 一支烟平躺在那里 ) )
散发着浓浓的气味 有点熏人 ( (
但我知道 那是一种思索 ) )
( )
______________________________________ ██▓███████_( ____________
※ 来源:·北极星BBS站 bjsing.net·[FROM: 天涯海角阁]
[回到开始]
[上一篇][下一篇]
荔园在线首页 友情链接:深圳大学 深大招生 荔园晨风BBS S-Term软件 网络书店