目录
1.安装
yum -y install squid
2.设置服务器开机启动
chkconfig --level 35 squid on
3.编辑配置文件
/etc/squid/squid.conf
4.初始化
squid –z
5.启动
/etc/init.d/squid start
6.使用
在局域网中找一台不可以上网的机器
vim /etc/profile
export http_proxy=http://ip:3128
export https_proxy=http://ip:3128
7.测试
curl www.baidu.com