mkdir ~/gfbin/openssl1.1.1c
cp -r /root/nginx1.17.2/openssl-OpenSSL_1_1_1c/.openssl/* ~/gfbin/openssl1.1.1c/
cd /root/gfbin/openssl1.1.1c/
cp libcrypto.so.1.1 ~/gfbin/openssl1.1.1c/
cp libssl.so.1.1 ~/gfbin/openssl1.1.1c/
mkdir ~/bak/ssl1.0.1e/
cp /usr/bin/openssl ~/bak/ssl1.0.1e/
cp /usr/lib64/libcrypto.so ~/bak/ssl1.0.1e/
cp /usr/lib64/libssl.so ~/bak/ssl1.0.1e/
cp -r /usr/include/openssl ~/bak/ssl1.0.1e/include
cp -r /usr/local/ssl/lib ~/bak/ssl1.0.1e/lib
rm -f /usr/include/openssl
rm -f /usr/lib64/libcrypto.so
rm -f /usr/lib64/libssl.so
rm -rf /usr/local/ssl/lib
rm -f /usr/bin/openssl
rm -f /usr/include/openssl
ln -s /root/gfbin/openssl1.1.1c/libcrypto.so.1.1 /usr/lib64/libcrypto.so
ln -s /root/gfbin/openssl1.1.1c/libssl.so.1.1 /usr/lib64/libssl.so
ln -s /root/gfbin/openssl1.1.1c/lib /usr/local/ssl/lib
ln -s /root/gfbin/openssl1.1.1c/bin/openssl /usr/bin/openssl
ln -s /root/gfbin/openssl1.1.1c/include/openssl /usr/include/openssl
openssl version
[root@~~~]# openssl version -a
评论已关闭!