代理服务器OS:
CentOS release 6.2 (x86_64)
代理服务器IP:
xxx.xxx.xxx.xxx
安装squid:
yum install squid.x86_64
修改配置文件:(精简)
vi /etc/squid/squid.conf
修改:http_access deny all -> http_access allow all
添加:cache_mem 80 MB
打开:cache_dir ufs /var/spool/squid 100 16 256
初始化:
shell>squid -z
重启:
shell>service squid restart
正向代理默认端口: 3128
测试(局域网内其他机器):
shell>wget -e "http_proxy=xxx.xxx.xxx.xxx:3128" http://www.baidu.com