buildroot ntp 网络时钟同步

简介: /********************************************************************** * buildroot ntp 网络时钟同步 * 说明: * 文件系统需要网络时钟同步,于是使用ntp来做这件事情。
/**********************************************************************
 *                     buildroot ntp 网络时钟同步
 * 说明:
 *     文件系统需要网络时钟同步,于是使用ntp来做这件事情。
 *
 *                                  2016-12-1 深圳 南山平山村 曾剑锋
 *********************************************************************/

一、buildroot配置:
    1. 时区:
      ┌───────────────────────── System configuration ──────────────────────────┐
      │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty │  
      │  submenus ----).  Highlighted letters are hotkeys.  Pressing <Y>        │  
      │  selectes a feature, while <N> will exclude a feature.  Press           │  
      │  <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*] feature │  
      │ ┌────^(-)─────────────────────────────────────────────────────────────┐ │  
      │ │    [*] Purge unwanted locales                                       │ │  
      │ │    (C en_US) Locales to keep                                        │ │  
      │ │    ()  Generate locale data                                         │ │  
      │ │    [*] Install timezone info                                        │ │  
      │ │    (default) timezone list                                          │ │  
      │ │    (Etc/UTC) default local time                                     │ │  
      │ │    ()  Path to the users tables                                     │ │  
      │ │    ()  Root filesystem overlay directories                          │ │  
      │ │    ()  Custom scripts to run before creating filesystem images      │ │  
      │ │    ()  Custom scripts to run inside the fakeroot environment        │ │  
      │ └────┴(+)─────────────────────────────────────────────────────────────┘ │  
      ├─────────────────────────────────────────────────────────────────────────┤  
      │        <Select>    < Exit >    < Help >    < Save >    < Load >         │  
      └─────────────────────────────────────────────────────────────────────────┘  
    2. ntpdate命令:
      ┌──────────────────────── Networking applications ────────────────────────┐
      │  Arrow keys navigate the menu.  <Enter> selects submenus ---> (or empty │  
      │  submenus ----).  Highlighted letters are hotkeys.  Pressing <Y>        │  
      │  selectes a feature, while <N> will exclude a feature.  Press           │  
      │  <Esc><Esc> to exit, <?> for Help, </> for Search.  Legend: [*] feature │  
      │ ┌────^(-)─────────────────────────────────────────────────────────────┐ │  
      │ │    [ ] noip                                                         │ │  
      │ │    [*] ntp                                                          │ │  
      │ │    [ ]   sntp                                                       │ │  
      │ │    [ ]   ntp-keygen                                                 │ │  
      │ │    [ ]   SHM clock support                                          │ │  
      │ │    [ ]   ntpd                                                       │ │  
      │ │    [*]   ntpdate                                                    │ │  
      │ │    [ ]   ntpdc                                                      │ │  
      │ │    [ ]   ntpq                                                       │ │  
      │ │    [ ]   ntpsnmpd                                                   │ │  
      │ └────┴(+)─────────────────────────────────────────────────────────────┘ │  
      ├─────────────────────────────────────────────────────────────────────────┤  
      │        <Select>    < Exit >    < Help >    < Save >    < Load >         │  
      └─────────────────────────────────────────────────────────────────────────┘  
    
二、执行命令
    [zengjf@root /etc]#  cp /usr/share/zoneinfo/Asia/Shanghai  /etc/localtime
    [zengjf@root /etc]#  cat timezone 
    Asia/Shanghai
    [zengjf@root /etc]#  ntpdate us.pool.ntp.org
     1 Dec 12:04:59 ntpdate[2437]: adjust time server 204.9.54.119 offset 0.009610 sec
    [zengjf@root /etc]#  

 

目录
相关文章
|
4月前
|
网络协议 算法 定位技术
利用GPS北斗卫星系统开发NTP网络时间服务器
利用GPS北斗卫星系统开发NTP网络时间服务器
|
5月前
|
存储 网络协议 Java
深入理解Linux网络——内核与用户进程协作之同步阻塞方案(BIO)
在上一部分中讲述了网络包是如何从网卡送到协议栈的(详见深入理解Linux网络——内核是如何接收到网络包的),接下来内核还有一项重要的工作,就是在协议栈接收处理完输入包后要通知到用户进程,如何用户进程接收到并处理这些数据。
PHP:guzzlehttp/guzzle发送同步和异步网络请求
PHP:guzzlehttp/guzzle发送同步和异步网络请求
581 0
|
2天前
|
网络协议
LabVIEW 通过网络同步多台计算机系统时间的方法与例程
LabVIEW 通过网络同步多台计算机系统时间的方法与例程
|
3天前
|
存储 安全 网络安全
云端防御战线:云计算与网络安全的同步进化
【5月更文挑战第9天】随着企业数字化转型的加速,云计算已成为支撑现代业务的关键基础设施。然而,伴随其发展,网络安全威胁也随之增加,给信息安全带来了前所未有的挑战。本文探讨了云服务模型在提供灵活性和可扩展性的同时,如何通过创新的安全机制来维护数据的完整性、保密性和可用性。分析了当前云计算环境中面临的主要安全风险,并深入讨论了多层次、多维度的网络安全防护策略,以期为企业构建安全可靠的云计算环境提供参考。
|
9天前
|
网络协议 算法 开发者
如何实现网络同步?
【5月更文挑战第3天】如何实现网络同步?
35 9
|
1月前
|
算法 网络协议 数据安全/隐私保护
NTP网络时间同步协议详解
NTP协议是互联网上用于同步计算机时间的标准,它利用分布式时间服务器网络,通过分层管理和本地路由算法确保时间的准确性。协议涉及时间偏差、延迟和差量三个概念,用于测量与参考时钟的同步状态。基本NTP数据包包含48字节,如头部和时间戳,关键字段如跳跃指示器(LI)、版本号(VN)、模式(Mode)、层次(Stratum)等影响同步过程。协议还包括时间戳以记录不同阶段的时间点。NTP认证可选,用于数据安全。
NTP网络时间同步协议详解
|
4月前
|
存储 NoSQL 关系型数据库
Redis协议与异步方式(redis网络层、pipeline、事务、lua脚本、ACID特性、发布订阅、hiredis实现同步连接与异步连接)
Redis协议与异步方式(redis网络层、pipeline、事务、lua脚本、ACID特性、发布订阅、hiredis实现同步连接与异步连接)
80 0
|
6月前
|
存储 NoSQL 关系型数据库
redis协议与异步方式(redis网络层、pipeline、事务、lua脚本、ACID特性、发布订阅、hiredis实现同步连接与异步连接)
redis协议与异步方式(redis网络层、pipeline、事务、lua脚本、ACID特性、发布订阅、hiredis实现同步连接与异步连接)
95 0
|
11月前
|
开发工具 C++
【玩转RT-Thread】ART-Pi 网络时钟(下)
【玩转RT-Thread】ART-Pi 网络时钟
114 0