#下载安装包
wget https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p11.tar.gz
#解压缩
tar -zxvf ntp-4.2.8p11.tar.gz
#开始编译安装
cd ntp-4.2.8p11
./configure --prefix=/data/server/ntp --enable-all-clocks --enable-parse-clocks
make && make install
在./configure这一步可能会遇到以下错误
configure: error: in `/root/ntp-4.2.8p11':
configure: error: no acceptable C compiler found in $PATH
解决方法是安装gcc
yum install gcc