关于在linux上面配置ADSL拨号代理的注意事项

首先按照崔大的步骤安装代理:崔大ADSL拨号代理
安装的时候有几点需要注意:
第一个注意点:

在这里插入图片描述
epel-release是一个源,类似pip的阿里源,这里也要把yum源换成阿里的,不然在执行yum命令时可能会报错

yum install -y epel-release wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo yum update -y yum install -y tinyproxy
从三步变成了四步,避免报错:Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again

第二个注意点:
安装python3.10.6时参考:Python3.10.6安装
在安装时配置修改一下:

./configure --prefix=/usr/local/python3/  --with-openssl=/usr/bin/openssl

然后执行其他安装步骤就行
第三个注意点:
在使用pip安装时,可能会有SSL之类的报错:

pip3 install --upgrade pip --trusted-host mirrors.aliyun.com --index-url [http://mirrors.aliyun.com/pypi/simple/](http://mirrors.aliyun.com/pypi/simple/)
pip3 install requests --trusted-host mirrors.aliyun.com --index-url [http://mirrors.aliyun.com/pypi/simple/](http://mirrors.aliyun.com/pypi/simple/)
pip3 install redis --trusted-host mirrors.aliyun.com --index-url [http://mirrors.aliyun.com/pypi/simple/](http://mirrors.aliyun.com/pypi/simple/)
pip3 install loguru --trusted-host mirrors.aliyun.com --index-url [http://mirrors.aliyun.com/pypi/simple/](http://mirrors.aliyun.com/pypi/simple/)
pip3 install environs --trusted-host mirrors.aliyun.com --index-url [http://mirrors.aliyun.com/pypi/simple/](http://mirrors.aliyun.com/pypi/simple/)
pip3 install retrying --trusted-host mirrors.aliyun.com --index-url [http://mirrors.aliyun.com/pypi/simple/](http://mirrors.aliyun.com/pypi/simple/)

用上面这种方式可以解决
在这里插入图片描述
另外可以直接配置pip源,不过我没有成功
pip配置源

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值