以本地时钟配置NTP
来源:互联网 发布:单片机有哪些类型 编辑:程序博客网 时间:2024/06/07 00:31
http://www.qbov.com/a/fuwuqi/Linuxfuwuqi/20100406/391.html
下述设置以时钟源服务器IP地址为192.168.0.1为例。可以命令ntpstat 和 ntpq -p 查看本机NTPD服务状态。配置完成后,均需要重新启动NTPD服务 service ntpd restart
【服务器端设置】
1.将/etc/下的文件ntp.conf修改如下:
server 127.127.1.0 minpoll 4 maxpoll 5
fudge 127.127.1.0 stratum 2
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
2.将/etc/ntp下的文件ntpservers内容置空
3.将/etc/ntp下的文件step-tickers修改如下:
127.127.1.0
【客户端设置】
1.将/etc/下的文件ntp.conf修改如下:
server 192.168.0.1 minpoll 4 maxpoll 5
fudge 127.127.1.0 stratum 3
restrict 127.0.0.1
driftfile /var/lib/ntp/drift
logfile /etc/ntp.log
restrict 192.168.0.1 mask 255.255.255.255
2.将/etc/ntp下的文件ntpservers内容置空
3.将/etc/ntp下的文件step-tickers修改如下:
192.168.0.1
http://hi.baidu.com/way2rhce/blog/item/d5cbb80346b5fbe708fa9306.html
安装包那些过程在此不表
配置文件:/etc/ntp.conf
server 127.127.1.0
fudge 127.127.1.0 stratum 5
restrict 9.75.131.0 mask 255.255.255.0 nomodify notrap
测试:
# watch ntpq -p
出现:
Every 2.0s: ntpq -p Tue Jan 12 10:54:54 2010
remote refid st t when poll reach delay offset jitter
==============================================================================
*LOCAL(0) .LOCL. 5 l 16 64 377 0.000 0.000 0.001
表示正确。
- 以本地时钟配置NTP
- Centos7 NTP时钟同步配置
- ntp配置本地服务器 ntp.conf
- CentOS7系统上配置NTP时钟服务器
- CentOS 集群 NTP 时钟同步配置教程
- linux debian下配置ntp时钟同步
- 配置本地时钟服务器
- 计算机NTP时钟同步(NTP服务器-NTP时间服务器)的重要性及其配置方法
- 配置NTP架设本地时间服务器
- 本地NTP服务器与客户端配置
- AIX 6.1 上 NTP 时钟同步配置详解
- NTP时钟源
- CISCO NTP和时钟
- NTP参考时钟
- Linux下配置NTP 架设本地时间服务器
- Linux下配置NTP 架设本地时间服务器
- ntp 配置
- 通过 NTP 进行时钟同步
- Hibernate数据加载——Session.get/load
- Symbian OS应用编程图形篇之事件(Event)
- 常用的JDBC连接数据库方法
- SQL Server 2005无法启动~!!!!
- 以Afx开头的函数
- 以本地时钟配置NTP
- RedHat Linux AS5 LAMP详细配置
- 应用双缓冲技术解决画面闪烁的问题
- vs2008 + OpenCV-2.1.0-win32-vs2008安装
- 用英特尔编译器进行跨平台编译
- mark
- windows常用快捷件
- 一个男人关心的东西决定他的层次
- 扗拉拉职场36计