centos7 简单开启代理上网 发表于 2022-05-10 centos7 简单开启代理上网 服务端安装: 在可以上网的机器安装 12yum install squid -ysystemctl restart squid 客户端安装: yum 配置代理 1echo "proxy=http://IP:3128/" >> /etc/yum.conf 系统全局代理(我测试下来,yum 不能用 ) vi /etc/profile 123# export all_proxy=http://IP:3128 只导入这个 ,测试下来wget不能用export http_proxy=http://IP:3128export https_proxy=http://IP:3128 123测试代理是否生效curl http://myip.ipip.netcurl https://myip.ipip.net/