linux 中NTP时间同步

简介: There are tow pen source software related to the NTP in linux, The first is ntpdate, the second is ntpd.
There are tow pen source software related to the NTP in linux, The first is ntpdate, the second is ntpd. you can install them as following:
    apt-get installl ntp; apt-get install openntpd;
or emerge ntp; emerge openntpd.


ntpdate can be run manually as necessary to set the host clock, or it can be run from the host startup script to set the clock at boot time. This is useful in some cases to set the clock initially before starting the NTP daemon ntpd. It is also possible to run ntpdate from a cron script. However, it is important to note that ntpdate with contrived cron scripts is no substitute for the NTP daemon, which uses sophisticated algorithms to maximize accuracy and reliability while minimizing resource use. Finally, since ntpdate does not discipline the host clock frequency as does ntpd, the accuracy using ntpdate is limited.

The ntpd program is an operating system daemon which sets and maintains the system time of day in synchronism with Internet standard time servers. It is a complete implementation of the Network Time Protocol (NTP) version 4, but also retains compatibility with version 3, as defined by RFC-1305, and version 1 and 2, as defined by RFC-1059 and RFC-1119, respectively. ntpd does most computations in 64-bit floating point arithmetic and does relatively clumsy 64-bit fixed point operations only when necessary to preserve the ultimate precision, about 232 picoseconds. While the ultimate precision is not achievable with ordinary workstations and networks of today, it may be required with future gigahertz CPU clocks and gigabit LANs.
目录
相关文章
|
6月前
|
消息中间件 Kubernetes NoSQL
Linux时间校准(ntpdate及NTP客户端代码校准示例)
Linux时间校准(ntpdate及NTP客户端代码校准示例)
|
监控 网络协议 Linux
Linux日期和时间管理指南:日期、时间、时区、定时任务和时间同步
Linux日期和时间管理指南:日期、时间、时区、定时任务和时间同步
196 0
|
6月前
|
监控 Linux 定位技术
Linux【环境部署 01】NTP时间服务器搭建及Linux+Windows客户端使用(一篇学会使用NTP服务)
Linux【环境部署 01】NTP时间服务器搭建及Linux+Windows客户端使用(一篇学会使用NTP服务)
1508 0
linux时间同步
linux时间同步实战操作
|
Linux
linux两台服务器时间同步
linux两台服务器时间同步
430 0
|
6月前
|
Linux 网络安全 开发工具
linux 时间同步 chrony
linux 时间同步 chrony
251 1
|
运维 Linux
linux时间同步以及各种时间格式显示
linux时间同步以及各种时间格式显示
81 0
|
Linux 网络安全
linux篇-CentOS7搭建NTP服务器
linux篇-CentOS7搭建NTP服务器
943 0
linux篇-CentOS7搭建NTP服务器
|
Linux 网络安全
Linux系统之NTP服务器配置
Linux系统之NTP服务器配置
1952 1
|
Linux 网络安全
配置Linux服务器时间同步
配置Linux服务器时间同步
配置Linux服务器时间同步