爱就爱了

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 15733|回复: 0

openWRT时间同步的最简方法

[复制链接]
发表于 2013-9-20 14:46:56 | 显示全部楼层 |阅读模式
SSH中,三行命令:
opkg update
opkg install ntpclient
ntpclient -s -c 0 -h ntp.sjtu.edu.cn

最后把这个 放到 rc.local 里, 每次启动 都会更细系统时间(或在web界面加入开机后运行,或定时执行计划任务)
ntpclient -s -c 0 -h ntp.sjtu.edu.cn

web界面中加入
开始:——管理界面——系统——开机启动
ntpclient -s -c 0 -h 202.120.2.101

每次开机执行一次。


开始:——管理界面——服务——计划任务
0 */8 * * * ntpclient -s -c 0 -h 202.120.2.101

8小时执行一次。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|平龙认个人分站 - 爱就爱了 ( 豫ICP备14029057号-2、4、5 )
豫公网安备 41010502002156号

GMT+8, 2024-5-5 08:36 , Processed in 0.049358 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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