linux上搭建代理服务器 Proxy Server

来源:互联网 发布:美利坚联盟国 知乎 编辑:程序博客网 时间:2024/06/06 03:04

1. launch a revo
2. check whether squid is installed, it is always installed by default
red-hat: sudo yum install squid
ubuntu: sudo apt-get instal squid
3. configure squid
sudo vim /etc/squid/squid.conf
3.1 change "http_access deny all" to "http_access allow all", delete the "#" before the line
3.2 record http_port, 3128, change to other number is also OK.
3.3 maximum_object_size, the maximum size of object which squid can receive, default is 4M, delete the "#" before the line
4. Start Squid
For the first time, need to create temporary dir for storing documents under /var/spool/squid, issue command:
cd /usr/sbin/
sudo ./squid -z
sudo ./squid

 

参考:

http://hi.baidu.com/endomorphin1/item/3fefcd0a5b35201bcc34eae1

原创粉丝点击