[root@master ~]# wget https://www.openssl.org/source/openssl-1.1.1g.tar.gz
[root@master ~]# tar zxf openssl-1.1.1g.tar.gz
[root@master ~]# cd openssl-1.1.1g
[root@master openssl-1.1.1g]# ./config --prefix=/usr/local/openssl1.1.1g --openssldir=/usr/local/openssl1.1.1g --libdir=lib shared -Wl,-R,'$(LIBRPATH)' -Wl,--enable-new-dtags enable-ec_nistp_64_gcc_128 enable-tls1_3
[root@master openssl-1.1.1g]# make -j 4&& make install
[root@master openssl-1.1.1g]# /usr/local/openssl1.1.1g/bin/openssl version
OpenSSL 1.1.1g 21 Apr 2020
遇到的问题
/usr/local/openssl1.1.1g/bin/openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
缺少相关依赖
ln -s /usr/local/openssl1.1.1g/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1