解决ntp漏洞问题

    • 1.下载二进制包
    • 2.安装依赖
    • 3.解压并编译安装

1.下载二进制包

[root@localhost ltp]# wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p15.tar.gz
[root@localhost ltp]# ls
ntp-4.2.8p15  ntp-4.2.8p15.tar.gz

2.安装依赖

[root@localhost ltp]# yum -y install \
gcc \
gcc-c++ \
openssl-devel \
libstdc++* \
libcap* \
m4 \
autoconf \
libtool

3.解压并编译安装

[root@localhost ltp]# tar zxvf ntp-4.2.8p15.tar.gz

[root@localhost ltp]# cd ntp-4.2.8p15/

[root@localhost ltp]# ./configure --prefix=/usr \
--bindir=/usr/sbin \
--enable-all-clocks \
--enable-parse-clocks \
--docdir=/usr/share/doc/ntp-4.2.8p15

[root@localhost ltp]# make -j3 && make install

[root@localhost ltp]# chkconfig ntpd on       # 开机自启动ntpd

[root@localhost ltp]# pkill ntpd              # 杀死旧的ntpd进程

[root@localhost ltp]# systemctl start ntpd    # 启动ntpd

你可能感兴趣的:(ntp漏洞)