此文档不兼容Redhat 9,套用会导致系统崩溃
卸载系统自带的openssl
yum remove openssl-devel -y
安装
yum groupinstall "Development Tools"
yum install wget perl-core zlib-devel -y
wget https://www.openssl.org/source/openssl-3.3.1.tar.gz
tar -xzvf openssl-3.3.1.tar.gz
cd openssl-3.3.1
./config --prefix=/usr/local/openssl
make
sudo make install
配置环境变量
vim /etc/profile
export PATH=/usr/local/ssl/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/ssl/lib:$LD_LIBRARY_PATH
更新 OpenSSL 的库配置
sudo sh -c "echo '/usr/local/ssl/lib' > /etc/ld.so.conf.d/openssl-3.3.1.conf"
sudo ldconfig -v
检查
/usr/local/openssl/bin/openssl version
发表评论