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)