Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3127317
  • 博文数量: 710
  • 博客积分: 14546
  • 博客等级: 上将
  • 技术积分: 6738
  • 用 户 组: 普通用户
  • 注册时间: 2007-03-30 10:20
文章分类

全部博文(710)

文章存档

2016年(1)

2014年(7)

2013年(22)

2012年(227)

2011年(322)

2009年(119)

2008年(12)

分类: LINUX

2011-08-01 10:01:56

  1. [root@zenoss30 ~]# grep  -v "^$\|^#" /etc/ntp.conf 
  2. restrict default kod nomodify notrap nopeer noquery
  3. restrict 127.0.0.1
  4. restrict 14.18.10.30
  5. restrict 0.0.0.0 mask 0.0.0.0 nomodify notrap
  6. server 14.18.8.245 prefer
  7. server 127.127.1.0 # local clock
  8. fudge 127.127.1.0 stratum 10
  9. driftfile /var/lib/ntp/drift
  1. [root@zenoss30 ntp]# cat step-tickers
  2. 14.18.8.245
查看NTP同步状态
  1. ntpstat - show network time synchronisation status
查看
  1. [root@s30 ~]# ntpq -p
  2.      remote refid st t when poll reach delay offset jitter
  3. ==============================================================================
  4.  14.18.8.245 .INIT. 16 u 39 64 0 0.000 0.000 0.000
公网稳定NTP
  1. /usr/sbin/ntpdate ntp.api.bz
ntptrace
更新BIOS
  1. [root@zenoss30 ntp]# cat /etc/sysconfig/ntpd
  2. SYNC_HWCLOCK=yes
在另外一台机器上测试
  1. /usr/sbin/ntpdate 14.18.10.30




阅读(496) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~