linux openssl升级处理

tar -zxvf openssl-1.1.1c.tar.gz
cd openssl-1.1.1c
./config --prefix=/usr/local/openssl #如果此步骤报错,需要安装perl以及gcc包
make && make install
mv /usr/bin/openssl /usr/bin/openssl.bak
ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl
echo "/usr/local/openssl3.0/lib64" >> /etc/ld.so.conf
ldconfig -v
"/usr/local/openssl3.0/lib64"这里是指安装后新的openssl的lib路径

 


1、openssl命令
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl /usr/include/openssl.bak

/usr/local/ssl/bin/openssl 

2、命令软连接
ln -s /usr/local/openssl3.0/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl3.0/include/openssl /usr/include/openssl

echo "/usr/local/openssl3.0/lib64" >> /etc/ld.so.conf
配置so的文件

3、ldconfig -v

 

 

4、查看版本:openssl version

5、openssl依赖包.so
/usr/lib(32位存放地址)
/usr/lib64(64位存放地址)
/usr/local/ssl/lib

6、依赖包软连接
ln -s /usr/local/openssl3.0/lib64/libssl.so.3 /usr/lib/
ln -s /usr/local/openssl3.0/lib64/libcrypto.so.3 /usr/lib/

nginx命令

/configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-pcre=/usr/local/pcre-8.42
--with-openssl=/usr/local/openssl-3.0.2

make && make install

 

posted @ 2022-03-29 16:51  节日快乐  阅读(314)  评论(0编辑  收藏  举报