1.查看openssl版本
[root@node2 openssh-8.0p1]# openssl version OpenSSL 1.0.1e-fips 11 Feb 2013
2.下载指定版本的openssl软件
[root@node2 opt]# wget openssl-1.1.0k.tar.gz
3.编译安装
cd openssl-1.1.0k ./config shared zlib make && make install
4.配置
[root@node2]# mv /usr/bin/openssl /usr/bin/openssl.bak [root@node2]# mv /usr/include/openssl /usr/include/openssl.bak [root@node2]# find / -name openssl [root@node2]# ln -s /usr/local/bin/openssl /usr/bin/openssl [root@node2]# ln -s /usr/local/include/openssl /usr/include/openssl root@node2]# echo "/usr/local/lib64/" >> /etc/ld.so.conf [root@node2]# ldconfig [root@node2]# openssl version -a
5.验证
[root@node2 openssl-1.1.0k]# openssl version OpenSSL 1.1.0k 28 May 2019
[root@compile275 bin]# mv /usr/bin/openssl /usr/bin/openssl.bak
[root@compile275 bin]# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ssl/
[root@compile275 bin]# ln -s /usr/local/ssl/bin/openssll /usr/bin/openssl
openssl
[root@compile275 bin]# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
[root@compile275 bin]#
[root@compile275 bin]#
[root@compile275 /]#
[root@compile275 /]# find / -name openssl
/usr/local/include/openssl
/usr/local/ssl/include/openssl
/usr/local/ssl/bin/openssl
/usr/include/openssl
/usr/lib64/openssl
/usr/bin/openssl
/usr/share/licenses/openssl
/usr/share/doc/openssl
/usr/share/bash-completion/completions/openssl
/etc/pki/ca-trust/extracted/openssl
/home/include/usrinclude/openssl
/home/zhulg/vetrix_2.1/openSource/dpdk-17.02/drivers/crypto/openssl
/home/zhulg/vetrix_2.1/openSource/net-snmp-5.7.2/snmplib/openssl
/home/zhulg/vetrix_2.1/install_root/usr/include/openssl
/home/zhulg/vetrix_2.1/install_root/usr/share/licenses/openssl
/home/zhulg/vetrix_2.1/install_root/usr/bin/openssl
/home/zhulg/vetrix_1.6_yitiji/openSource/paho.mqtt.c-master/test/openssl
/home/zhulg/vetrix_1.6_yitiji/openSource/nginx-1.14.2/auto/lib/openssl
/home/zhulg/vetrix_1.6_yitiji/openSource/dpdk-17.02/drivers/crypto/openssl
/home/zhulg/vetrix_1.6_yitiji/install_root/usr/include/openssl
/home/zhulg/vetrix_1.6_yitiji/install_root/usr/share/licenses/openssl
/home/zhulg/vetrix_1.6_yitiji/install_root/usr/bin/openssl
/home/zhulg/vetrix_1.6/openSource/paho.mqtt.c-master/test/openssl
/home/zhulg/vetrix_1.6/openSource/dpdk-17.02/drivers/crypto/openssl
/home/zhulg/vetrix_2.1_bak/openSource/dpdk-17.02/drivers/crypto/openssl
/home/zhulg/vetrix_2.1_bak/openSource/net-snmp-5.7.2/snmplib/openssl
/home/zhulg/vetrix_2.1_bak/install_root/bin/openssl
/home/zhulg/vetrix_2.1_bak/install_root/usr/include/openssl
/home/zhulg/vetrix_2.1_bak/install_root/usr/share/licenses/openssl
/home/zhulg/vetrix_2.1_bak/install_root/usr/bin/openssl
/home/zhulg/vetrix_2.1_bak/install_root/usr/sbin/openssl
/home/zhulg/vetrix_2.1_bak/install_root/sbin/openssl