免费注册 查看新帖 |

Chinaunix

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

[OpenBSD] openbsd下同步时间的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-01-08 10:15 |只看该作者 |倒序浏览
#/usr/local/sbin/ntpdate 133.100.9.2
8 Jan 17:56:08 ntpdate[3675]: step-systime: Operation not permitted
#ntpdate clepsydra.dec.com
8 Jan 17:59:59 ntpdate[19010]: step-systime: Operation not permitted
哪里有限制?我的是root用户

论坛徽章:
0
2 [报告]
发表于 2005-01-08 13:14 |只看该作者

openbsd下同步时间的问题

rdate

论坛徽章:
0
3 [报告]
发表于 2005-01-08 13:47 |只看该作者

openbsd下同步时间的问题

lrwxr-xr-x  1 root  wheel         23 Jan  8 19:22 localtime ->; /usr/share/zoneinfo/PRC
怎么显示的时间还差了八个时区?换成/usr/share/zoneinfo/Asia/Shanghai也不行?另外怎么没有北京啊?

论坛徽章:
0
4 [报告]
发表于 2005-01-08 13:55 |只看该作者

openbsd下同步时间的问题

ntpdate -b time.nist.gov

论坛徽章:
0
5 [报告]
发表于 2005-01-08 14:06 |只看该作者

openbsd下同步时间的问题

ln -fs /usr/share/zoneinfo/UCT /etc/localtime
这样以后时间就对了,PRC不是中国吗?

论坛徽章:
0
6 [报告]
发表于 2005-01-08 14:11 |只看该作者

openbsd下同步时间的问题

#ntpdate -b time.nist.gov
8 Jan 14:07:49 ntpdate[21294]: step-systime: Operation not permitted
Jan  8 22:07:49 OpenBSD /bsd: denied attempt to set clock back 28853 seconds
Jan  8 22:07:49 OpenBSD /bsd: denied attempt to set clock back 28853 seconds
Jan  8 22:07:49 OpenBSD /bsd: denied attempt to set clock back 28853 seconds
Jan  8 22:07:49 OpenBSD /bsd: denied attempt to set clock back 28853 seconds

论坛徽章:
0
7 [报告]
发表于 2005-01-08 18:26 |只看该作者

openbsd下同步时间的问题

看一下是否起了NTPD进程,如果有NTPD进程的话,就不能用ntpdate和rdate当作client使用了。

论坛徽章:
0
8 [报告]
发表于 2005-01-08 20:36 |只看该作者

openbsd下同步时间的问题

/etc/rc.conf里面
ntpd_flags=NO           # for normal use: ""
# ps -x |grep ntpd
  700 p0  I+      0:00.01 grep ntpd
没有这个进程啊?现在执行又变成:
8 Jan 20:34:31 ntpdate[24926]: step-systime: Operation not permitted
OpenBSD的时区到底该设置成哪个啊?ln -fs /usr/share/zoneinfo/UCT /etc/localtime 这样以后时间是对的,PRC怎么差了8个时区?

论坛徽章:
0
9 [报告]
发表于 2005-01-08 20:58 |只看该作者

openbsd下同步时间的问题

why not ntpd -s?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP