栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

如何设置 proxy

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

如何设置 proxy

Git proxy
[http]
	proxy = http://10.206.133.47:3128
[user]
	email = name@email.com
	name = name
APT PROXY

In file /etc/apt/apt.conf

	Acquire::http::proxy "http://10.206.133.47:3128/";
	Acquire::https::proxy "http://10.206.133.47:3128/";
	Acquire::http::No-Cache=true;
	Acquire::https::No-Cache=true;
	Acquire::http::Pipeline-Depth '0';
PIP proxy

In file /root/.pip/pip.conf

[global]
index-url = http://pypi.douban.com/simple
proxy=http://10.206.133.47:3128
[install]
trusted-host=pypi.douban.com
设置 proxy时出现的各种错误
  • fatal: unable to access ‘https://github.com/spdk/spdk/’: server certificate verification failed. CAfile: none CRLfile: none
export GIT_SSL_NO_VERIFY=1 

git config --global http.sslVerify false

export http_proxy=http://10.206.133.47:3128
  • 第二个错误:该错误 是因为没有设置proxy
Looking in indexes: http://pypi.douban.com/simple
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) 
after connection broken by 'ConnectTimeoutError(, 'Connection to pypi.douban.com timed out. (connect timeout=15)')': /simple/fb-idb/
  • fatal: unable to access ‘https://github.com/spdk/spdk/’: server certificate verification failed. CAfile: none CRLfile: none
export GIT_SSL_NO_VERIFY=1 

git config --global http.sslVerify false

export http_proxy=http://10.206.133.47:3128
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/863847.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号