Winse Blog

走走停停都是风景, 熙熙攘攘都向最好, 忙忙碌碌都为明朝, 何畏之.

安装http代理服务器squid

环境说明

  • squid-3.3.14.tar.gz
  • centos6.6

安装

1
2
3
4
5
6
7
8
9
10
11
yum install gcc gcc-c++
cd squid-3.3.14
./configure
make
make install

cd /usr/local/squid
#不修改会有权限的问题
chmod 777 var/logs
sbin/squid 
sbin/squid -k shutdown

或者:

1
2
yum -y install squid
chkconfig squid on

改下squid.conf的配置:

1
2
3
# And finally deny all other access to this proxy
#http_access deny all
http_access allow all

使用

在浏览器中设置Http代理。端口为3128

参考

–END

Comments