如何解决更新https ssl证书时卡住在Installing Python packages...不动

2019-04-03 20:36:00
admin
原创
8299

网站部署https我使用的是Let's Encrypt SSL免费证书,有效期3个月,需要定期更新。今天在更新ssl证书时,卡在Installing Python packages不动,如下图:

question.png

我用的是阿里云的ECS服务器centos6.5 x64。解决这个问题十分简单,只需要修改下pip.conf文件即可。方法如下:

将阿里云的镜像改为清华的镜即可。

vim ~/.pip/pip.conf

[global]
index-url=https://pypi.tuna.tsinghua.edu.cn/simple/

[install]
trusted-host=pypi.tuna.tsinghua.edu.cn

qinghuajignxiang.png

修改保存后,再试试 ./certbot-auto renew 和 ./certbot-auto renew 就正常了。


版权声明

版权声明:本站原创文章,转载请注明作者和出处。

本站点采用 知识共享署名-非商业性使用-禁止演绎 4.0 国际许可协议