CentOS7升级openssl版本

ERROR: Could not find a version that satisfies the requirement novas (from versions: none)
ERROR: No matching distribution found for novas
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

问题大意:找不到满足novas要求的版本
错误:没有找到匹配的分布新星
警告:pip配置了需要TLS/SSL的位置,但是Python中的SSL模块不可用
问题原因:openss版本过低或者重新编译python(Python编译安装时需要加上参数–with-openssl=其目录)

  1. 查看openssl的版本
openssl version -a
  1. OpenSSL官网用wget 下载源码包
wget https://www.openssl.org/source/openssl-1.1.1q.tar.gz
  1. 解压
tar -zxvf openssl-1.1.1q.tar.gz
cd openssl-1.1.1q
  1. 编译安装
./config --prefix=/usr/local/openssl
make && make install
  1. 备份原配置
mv /usr/bin/openssl /usr/bin/openssl.bak
  1. 新版配置添加软连接
ln -sf /usr/local/openssl/bin/openssl /usr/bin/openssl
  1. 修改系统配置
echo "/usr/local/openssl/lib" >> /etc/ld.so.conf  #写入openssl库文件的搜索路径
ldconfig -v#使修改后的/etc/ld.so.conf生效
openssl version#查看openssl版本
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值