免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1976 | 回复: 0
打印 上一主题 下一主题

请教个关于ntpd的基本问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-07-05 11:42 |只看该作者 |倒序浏览
使用ntpd自动同步本机时间,并只对同网段的机器提供服务,是不是这么设置就行了?
/etc/rc.conf
ntpd_enable="YES"

/etc/ntp.conf
server cn.pool.ntp.org prefer
server time.windows.com
server bonehed.lcs.mit.edu

#restrict default ignore
restrict default nomodify notrap nopeer noquery
restrict 127.0.0.1
restrict 192.168.1.0 mask 255.255.255.128 nomodify

driftfile /var/db/ntp.drift

查看进程,有下边两个
  835  ??  Ss     0:00.02 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift
  853  ??  Is     0:00.00 /usr/sbin/sshd
  859  ??  S      0:00.00 /usr/sbin/ntpd -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift

这样设置是否足够了?
ntpd在什么时间同步?多长时间同步一次?
如果不对别的机器提供服务的话,是不是防火墙不需要额外开放任何端口
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP