利用squid搭建http/https代理服务器
作者:互联网
yum install squid -y
/etc/squid/squid.conf
找到这句话,前面如果有#号就去掉,deny换成allow
systemctl start squid
已完成配置 测试是否成功
利用python 或是其他
import requests
ss = requests.session()
ss.proxies = {'http': 'http://ip:3128', 'https':'http://ip:3128'}
http=ss.get('http://www.qq.com')
print(http)
https=ss.get('https://www.baidu.com')
print(https)
标签:www,http,ss,ip,squid,代理服务器,https 来源: https://blog.csdn.net/weixin_41096569/article/details/121008808