找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
楼主: jbcdi***

[已解决]openwrt如何同步时间

[复制链接]
发表于 2016-2-15 12:39 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-2-18 23:13 | 显示全部楼层
mitchell 发表于 2016-2-14 19:58
我的也无法同步,可是我执行了取是这样:还是不行。

root@OPENWRT:~# ntpd -n -d -p stdtime.gov.hk

试试其他 ntp 服务器,我刚试了:
  1. root@OpenWrt:~# ntpd -n -q -d -p 0.pool.ntp.org
  2. ntpd: resolved peer 0.pool.ntp.org to 119.9.78.248
  3. ntpd: sending query to 119.9.78.248
  4. ntpd: reply from 119.9.78.248: offset:+0.020774 delay:0.003155 status:0x24 strat:4 refid:0x6af7f86a rootdelay:0.211078 reach:0x01
  5. ntpd: sending query to 119.9.78.248
  6. ntpd: reply from 119.9.78.248: offset:+0.020487 delay:0.002084 status:0x24 strat:4 refid:0x6af7f86a rootdelay:0.211078 reach:0x03
  7. ntpd: sending query to 119.9.78.248
  8. ntpd: reply from 119.9.78.248: offset:+0.020827 delay:0.003081 status:0x24 strat:4 refid:0x6af7f86a rootdelay:0.211078 reach:0x07
  9. ntpd: sending query to 119.9.78.248
  10. ntpd: reply from 119.9.78.248: offset:+0.020768 delay:0.003078 status:0x24 strat:4 refid:0x6af7f86a rootdelay:0.211078 reach:0x0f
  11. ntpd: sending query to 119.9.78.248
  12. ntpd: reply from 119.9.78.248: offset:+0.020659 delay:0.003324 status:0x24 strat:4 refid:0x6af7f86a rootdelay:0.211078 reach:0x1f
  13. root@OpenWrt:~# ntpd -n -q -d -p 1.pool.ntp.org
  14. ntpd: resolved peer 1.pool.ntp.org to 218.189.210.4
  15. ntpd: sending query to 218.189.210.4
  16. ntpd: reply from 218.189.210.4: offset:-0.000026 delay:0.002835 status:0x24 strat:2 refid:0xdfffb902 rootdelay:0.003922 reach:0x01
  17. ntpd: sending query to 218.189.210.4
  18. ntpd: reply from 218.189.210.4: offset:-0.000099 delay:0.002741 status:0x24 strat:2 refid:0xdfffb902 rootdelay:0.003922 reach:0x03
  19. ntpd: sending query to 218.189.210.4
  20. ntpd: reply from 218.189.210.4: offset:-0.000069 delay:0.002800 status:0x24 strat:2 refid:0xdfffb902 rootdelay:0.003922 reach:0x07
  21. ntpd: sending query to 218.189.210.4
  22. ntpd: reply from 218.189.210.4: offset:-0.000050 delay:0.002765 status:0x24 strat:2 refid:0xdfffb902 rootdelay:0.003922 reach:0x0f
  23. ntpd: sending query to 218.189.210.4
  24. ntpd: reply from 218.189.210.4: offset:-0.000094 delay:0.002713 status:0x24 strat:2 refid:0xdfffb902 rootdelay:0.003922 reach:0x1f
  25. root@OpenWrt:~#
复制代码


点评

刚刚试了,看来是没问题了!就不知原先是怎么一回事了!谢谢了!  详情 回复 发表于 2016-2-21 16:16
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-2-21 16:16 | 显示全部楼层
hkal 发表于 2016-2-18 23:13
试试其他 ntp 服务器,我刚试了:
  1. root@OPENWRT:~# ntpd -n -q -d -p 0.pool.ntp.org
  2. ntpd: resolved peer 0.pool.ntp.org to 202.118.1.81
  3. ntpd: sending query to 202.118.1.81
  4. ntpd: reply from 202.118.1.81: offset:+0.027412 delay:0.046821 status:0x24 strat                                                    :2 refid:0xca76012e rootdelay:0.000198 reach:0x01
  5. ntpd: sending query to 202.118.1.81
  6. ntpd: reply from 202.118.1.81: offset:+0.027576 delay:0.047078 status:0x24 strat                                                    :2 refid:0xca76012e rootdelay:0.000198 reach:0x03
  7. ntpd: sending query to 202.118.1.81
  8. ntpd: reply from 202.118.1.81: offset:+0.027490 delay:0.046978 status:0x24 strat                                                    :2 refid:0xca76012e rootdelay:0.000198 reach:0x07
  9. ntpd: sending query to 202.118.1.81
  10. ntpd: reply from 202.118.1.81: offset:+0.027464 delay:0.047124 status:0x24 strat:2 refid:0xca76012e rootdel                         ay:0.000198 reach:0x0f
  11. ntpd: sending query to 202.118.1.81
  12. ntpd: reply from 202.118.1.81: offset:+0.027435 delay:0.046774 status:0x24 strat:2 refid:0xca76012e rootdel                         ay:0.000198 reach:0x1f
  13. root@OPENWRT:~# ntpd -n -q -d -p 1.pool.ntp.org
  14. ntpd: resolved peer 1.pool.ntp.org to 202.118.1.81
  15. ntpd: sending query to 202.118.1.81
  16. ntpd: reply from 202.118.1.81: offset:+0.027526 delay:0.047246 status:0x24 strat:2 refid:0xca76012e rootdelay:0.000198 reach:0x01
  17. ntpd: sending query to 202.118.1.81
  18. ntpd: reply from 202.118.1.81: offset:+0.027647 delay:0.047076 status:0x24 strat:2 refid:0xca76012e rootdelay:0.000198 reach:0x03
  19. ntpd: sending query to 202.118.1.81
  20. ntpd: reply from 202.118.1.81: offset:+0.027684 delay:0.047151 status:0x24 strat:2 refid:0xca76012e rootdelay:0.000198 reach:0x07
  21. ntpd: sending query to 202.118.1.81
  22. ntpd: reply from 202.118.1.81: offset:+0.027401 delay:0.047443 status:0x24 strat:2 refid:0xca76012e rootdelay:0.000198 reach:0x0f
  23. ntpd: sending query to 202.118.1.81
  24. ntpd: reply from 202.118.1.81: offset:+0.027228 delay:0.047806 status:0x24 strat:2 refid:0xca76012e rootdelay:0.000198 reach:0x1f
  25. root@OPENWRT:~#
复制代码


刚刚试了,看来是没问题了!就不知原先是怎么一回事了!谢谢了!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-2-28 10:20 | 显示全部楼层
一直解决不了

点评

解决了,免安装指令是 ntpd -n -q -p 0.asia.pool.ntp.org  详情 回复 发表于 2016-2-28 14:50
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-2-28 14:50 | 显示全部楼层

解决了,免安装指令是
ntpd -n -q -p 0.asia.pool.ntp.org

点评

/etc$ ntpd -n -q -p 0.asia.pool.ntp.org Alarm clock /etc$ ntpd -n -q -p 0.asia.pool.ntp.org Alarm clock 什么意思??  详情 回复 发表于 2016-3-2 01:15
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-2 01:15 | 显示全部楼层
jbcdidgosir 发表于 2016-2-28 14:50
解决了,免安装指令是
ntpd -n -q -p 0.asia.pool.ntp.org

/etc$ ntpd -n -q -p 0.asia.pool.ntp.org
Alarm clock
/etc$ ntpd -n -q -p 0.asia.pool.ntp.org
Alarm clock
什么意思??

点评

不知道,没看到,那时间能同步了吗?另外,你刷的是英文官网上下载的吗?  详情 回复 发表于 2016-3-5 14:05
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2016-3-5 14:05 | 显示全部楼层
wei209 发表于 2016-3-2 01:15
/etc$ ntpd -n -q -p 0.asia.pool.ntp.org
Alarm clock
/etc$ ntpd -n -q -p 0.asia.pool.ntp.org

不知道,没看到,那时间能同步了吗?另外,你刷的是英文官网上下载的吗?

点评

可能移动宽带不支持 [attachimg]125638[/attachimg] [attachimg]125639[/attachimg]  详情 回复 发表于 2016-3-5 20:28
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-3-5 20:28 | 显示全部楼层
本帖最后由 wei209 于 2016-3-5 20:31 编辑
jbcdidgosir 发表于 2016-3-5 14:05
不知道,没看到,那时间能同步了吗?另外,你刷的是英文官网上下载的吗?
刷的 r46516 by Haxc 可能移动宽带不支持123端口吧





本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

移动我试了换个时间服务器,ntpd -n -q -p pool.ntp.org 或者 ntpd -n -q -p 1.lede.pool.ntp.org 都可以。  详情 回复 发表于 2017-4-7 20:51
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2016-8-14 04:11 | 显示全部楼层
试了,楼主的方法可以!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-3-28 18:46 | 显示全部楼层
楼主你的命令在哪里。迷糊了啊

点评

ntpd -n -q -p 0.asia.pool.ntp.org  详情 回复 发表于 2017-4-7 20:34
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| 发表于 2017-4-7 20:34 | 显示全部楼层
dengyu 发表于 2017-3-28 18:46
楼主你的命令在哪里。迷糊了啊

ntpd -n -q -p 0.asia.pool.ntp.org
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2017-4-7 20:51 | 显示全部楼层
wei209 发表于 2016-3-5 20:28
刷的 r46516 by Haxc 可能移动宽带不支持123端口吧

移动我试了换个时间服务器,ntpd -n -q -p pool.ntp.org

或者  ntpd -n -q -p 1.lede.pool.ntp.org

都可以。
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-25 20:20

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表