windows上面安裝squid加速代理網站配置方法

來源:互聯網
上載者:User

windows 上面安裝squid 加速代理網站

windows squid 下載 http://www.jb51.net/softs/43599.html

下載解壓到 c:\squid

c:\squid\etc\squid.conf 如下

複製代碼 代碼如下:#本地綁定的IP連接埠
http_port IP:80 vhost
visible_hostname localhost
cache_dir ufs c:/squid/cache 1024 16 256
cache_mem 100 MB
#代理的IP地址和連接埠
cache_peer ip地址 parent 80 0 no-query originserver weight=1 name=a
cache_peer IP地址 parent 80 0 no-query originserver weight=1 name=b
#加速兩個網站
cache_peer_domain a www.aaa.com
cache_peer_domain b www.bbb.com

acl all src 0.0.0.0/0.0.0.0
http_access allow all
cache_peer_access a allow all
cache_peer_access b allow all
tcp_recv_bufsize 65535 bytes

cache_mgr phpsir@qq.com
icp_port 0

c:\squid\etc\mime.conf.default 複製成 mime.conf

建立緩衝目錄
c:\squid\sbin\squid -z
安裝成服務
c:\squid\sbin\squid -i
啟動服務
net start squid

更多資料看這裡 http://www.squid-cache.org/Doc/config/

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.