- 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
- #chkconfig ntpd on
- #/etc/init.d/ntpd start
- #/etc/init.d/ntpd stop
- #/etc/init.d/ntpd restart
- 0 3 * * * /usr/sbin/ntpdate 192.168.0.179
************************************************
时间服务器的IP为:192.168.10.1
1). # rpm -ivh ntp-4.1.2-4.EL3.1.i386.rpm
2). # vi /etc/ntp.conf
注释一行
restrict default ignore
加入一行
restrict 192.168.10.0 mask 255.255.255.0 notrust nomodify notrap
3). # vi /etc/ntp/step-tickers
加入一行
pool.ntp.org
这样每次ntpd启动时,会自动连接该国际标准时间服务器;
4). # service ntpd start
5). # netstat -an |grep 123
确保该端口以udp方式开放
时间客户端配置(192.168.10.2)
a. # ntpdate 192.168.10.2
应该显示同步成功
b. # crond -e
加入
0-59/10 * * * * /usr/sbin/ntpdate 192.168.10.1
表示每隔10分钟同步一次时间。
Build and Install
Program Manual Pages
Configuration Commands and Options
Client and Server Configuration
Reference Clock Support
Reference Clock Audio Drivers
Miscellaneous
External Links
To: jconsole不能打开,大概两种可能: 1 没有启用独占模式,如O
两个实例分别放在不同的 datadir 里面,会方便很多
今天遇到了“Cleanup failed to process the following paths:-
谢谢分享.有帮助.
根据inotify + rsync的思路,现在有了个c++版本的同步程序,只需指
真是有耐心呀。我做了个pdf 文件 在上面的网站可以下载