成都网站建设设计

将想法与焦点和您一起共享

python3.7——openssl升级

Python3.7使用的openssl为1.0.2版本或1.1以上的版本

站在用户的角度思考问题,与客户深入沟通,找到申扎网站设计与申扎网站推广的解决方案,凭借多年的经验,让设计与互联网技术结合,创造个性化、用户体验好的作品,建站类型包括:网站设计制作、做网站、企业官网、英文网站、手机端网站、网站推广、空间域名、网页空间、企业邮箱。业务覆盖申扎地区。

python3.7——openssl升级

Centos .9安装openssl 1.1版本

 

[root@python3_7 soft]# mkdir –p /soft

[root@python3_7 soft]# cd /soft

[root@python3_7 soft]# wget https://www.openssl.org/source/openssl-1.1.0j.tar.gz

更新zlib

[root@python3_7 soft]# yum install -y zlib

[root@python3_7 soft]# tar zxvf openssl-1.1.0j.tar.gz

python3.7——openssl升级

[root@python3_7 soft]# cd openssl-1.1.0j

[root@python3_7 openssl-1.1.0j]# ./config shared zlib

[root@python3_7 openssl-1.1.0j]# make

[root@python3_7 openssl-1.1.0j]# make install

[root@python3_7 openssl-1.1.0j]# mv /usr/bin/openssl /usr/bin/openssl.bak

[root@python3_7 openssl-1.1.0j]# mv /usr/include/openssl /usr/include/openssl.bak

[root@python3_7 openssl-1.1.0j]# ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

[root@python3_7 openssl-1.1.0j]# ln -s /usr/local/ssl/include/openssl /usr/include/openssl

在/etc/ld.so.conf文件中写入openssl库文件的搜索路径

[root@python3_7 openssl-1.1.0j]# echo "/usr/local/lib64" >> /etc/ld.so.conf

使修改后的/etc/ld.so.conf生效,

[root@python3_7 openssl-1.1.0j]# ldconfig -v

查看是否升级成功

[root@python3_7 openssl-1.1.0j]# openssl version

OpenSSL 1.1.0j  20 Nov 2018

 


名称栏目:python3.7——openssl升级
转载注明:http://chengdu.cdxwcx.cn/article/gcddcd.html