CentOS7下升级openssl
参考:
- https://sb.sb/centos-upgrade-openssl/
- https://help.aliyun.com/knowledge_detail/37417.html
yum install gcc gcc-c++ autoconf automake zlib zlib-devel pcre-devel
cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
tar -xzvf openssl-1.0.2-latest.tar.gz
cd openssl-1.0.2*
./config
make && make install
mv /usr/bin/openssl /tmp/
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
openssl version
此外还需要重启其他与OpenSSL相关的服务,可通过bash lsof | grep libssl | awk ‘{print $1}’| sort | uniq
查看与OpenSSL库相关的服务。