1.未升级之前的版本
[root@localhost ~]# openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
2.升级步骤
tar -xf openssl-1.0.2q.tar.gz
cd openssl-1.0.2q
./config --prefix=/usr/local/ssl -d shared
make
make install
echo '/usr/local/ssl/lib' >> /etc/ld.so.conf
ldconfig -v
mv /usr/bin/openssl /usr/bin/openssl.old
mv /usr/include/openssl /usr/include/openssl.old
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
3.升级之后的版本
[root@localhost local]# openssl version
OpenSSL 1.0.2q 20 Nov 2018