「与NTP有关的服务端及客户端安装」

  CREATED BY JENKINSBOT

在GNU/Linux下,从发行版的源中安装

#!/bin/bash

# 系统环境:Ubuntu 14.04.5 LTS
# ntp中包含的是服务端相关的程序文件。
# ntpdate中包含的是客户端相关的程序文件。
apt-get install ntp ntpdate

在GNU/Linux下,使用源码编译安装

使用源码编译不再记录,参考BLFS7.1.0中的ntp-4.2.8p8的编译手册

安装的可执行程序

calc_tickadj
calculates optimal value for tick given ntp drift file.

ntp-keygen
generates cryptographic data files used by the NTPv4 authentication and identification schemes.

ntp-wait
is useful at boot time, to delay the boot sequence until ntpd has set the time.

ntpd
is a ntp daemon that runs in the background and keeps the date and time synchronized based on response from configured ntp servers. It also functions as a ntp server.

ntpdate
is a client program that sets the date and time based on the response from an ntp server. This command is deprecated.

ntpdc
is used to query the ntp daemon about its current state and to request changes in that state.

ntpq
is a utility program used to monitor ntpd operations and determine performance.

ntptime
reads and displays time-related kernel variables.

ntptrace
traces a chain of ntp servers back to the primary source.

sntp
is a Simple Network Time Protocol (SNTP) client.

tickadj
reads, and optionally modifies, several timekeeping-related variables in older kernels that do not have support for precision timekeeping.

update-leap
is a script to verify and, if necessary, update the leap-second definition file.

注意事项

  1. 以上的部分命令可能不存在于发行版的包中,只有使用源码编译才会出现。

参考文献

BLFS7.1.0中的ntp-4.2.8p8的编译手册