Chinaunix首页 | 论坛 | 博客
  • 博客访问: 278915
  • 博文数量: 78
  • 博客积分: 3018
  • 博客等级: 少校
  • 技术积分: 950
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-07 02:33
文章分类

全部博文(78)

文章存档

2013年(1)

2012年(19)

2011年(45)

2008年(13)

ntp

分类: LINUX

2012-03-01 16:23:03

1.配置ntp server
restrict 127.0.0.1
restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap
server clock.redhat.com
server clock2.redhat.com
restrict clock.redhat.com mask 255.255.255.255 nomodify notrap noquery
restrict clock2.redhat.com mask 255.255.255.255 nomodify notrap noquery
server  127.127.1.0     # local clock
fudge   127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay  0.008
authenticate yes
keys            /etc/ntp/keys

2.client 
#crontab -e
50 23 * * * /usr/sbin/ntpdate 192.168.1.1;/sbin/hwclock --systohc >> /dev/null 2>&1

阅读(756) | 评论(1) | 转发(0) |
0

上一篇:mail指令+uuencode发送附件

下一篇:mytop

给主人留下些什么吧!~~

忘忧草5552012-03-03 16:10:26

这两天正好在配这个,谢谢啦,博主