阿里云Centos7 配置squid
修改主机名
hostname 产看主机名
hostnamectl set-hostname centos77.magedu.com 修改主机名(立即生效且重启也生效)
使用squid搭建代理服务器
安装
yum install squid
编辑
vi /etc/squid/squid.conf
在#And finally deny all other access to this proxy 下面
注释掉 #http_access deny all
添加 http_access allow all
在# Squid normally listens to port 3128 下面
注释掉 #http_port 3128
加上 http_port 0.0.0.0:3128
否则会监听 tcp6
启动服务
systemctl start squid
设置阿里云安全组