Liunx httpd 升级

来源:互联网 发布:nginx rtmp hls 延迟 编辑:程序博客网 时间:2024/05/17 23:27
由于最近安全漏洞扫描主机RedHat6.2 中的http版本太低,存在漏洞,所以需要进行升级。
操作步骤如下:
1、上传介质到主机任意目录,进入目录解压
cd /home/security
tar -zxvf httpd-2.4.10.tar.gz
2、进入解压目录 进行make&make install
cd httpd-2.4.10
./configure --prefix=/usr/local/apache --sysconfdir=/etc/httpd --with-apr=/usr/local/apr/ --with-apr-util=/usr/local/apr-util/
make
make install
3、替换新httpd至/usr/sbin
mv /usr/sbin/httpd /usr/sbin/httpd.bak
cp -p /usr/local/apache/bin/httpd /usr/sbin/
4、查看版本
httpd -v
0 0
原创粉丝点击