升级openssl zlib版本 安装nginx

本文档详细介绍了如何升级系统中的zlib到1.2.11版本,然后升级OpenSSL到1.0.2k,并创建必要的软连接。接着,通过解决编译错误,成功安装了nginx。这是一个针对Linux系统的系统维护和软件部署过程。
摘要由CSDN通过智能技术生成

升级zlib
查看当前zlib版本

find /usr/ -name zlib.pc

cat /usr/lib64/pkgconfig/zlib.pc
编译安装

tar xf zlib-1.2.11.tar.gz

cd zlib-1.2.11

./configure --prefix=/usr/local/zlib1.2.5
make
make install
echo /usr/local/zlib1.2.5/lib >>/etc/ld.so.confldconfig -v

升级Openssl
查看现有openssl版本
openssl version -a
OpenSSL 1.0.1e-fips 11 Feb 2013

升级openssl
tar -xf openssl-1.0.2k.tar.gz
cd openssl-1.0.2k
./config shared zlib
make && make install
cd …

创建软连接
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/include/openssl /usr/include/openssl.old
ln -sf /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -sf /usr/local/ssl/include/openssl/ /usr/include/openssl

echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
echo “/usr/local/apr/lib” >> /etc/ld.so.conf
ldconfig

ln -sf /usr/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值