欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

windows上面安裝squid加速代理網(wǎng)站配置方法

 更新時(shí)間:2013年05月14日 15:28:44   作者:  
有時(shí)候我們用window服務(wù)器,也想減輕服務(wù)器負(fù)擔(dān),那么就可以使用squid加速,下面是配置方法,需要的朋友可以參考喜愛
windows 上面安裝squid 加速代理網(wǎng)站

windows squid 下載 http://www.dbjr.com.cn/softs/43599.html

下載解壓到 c:\squid

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

復(fù)制代碼 代碼如下:

#本地綁定的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
#加速兩個(gè)站點(diǎn)
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 復(fù)制成 mime.conf

創(chuàng)建緩存目錄
c:\squid\sbin\squid -z
安裝成服務(wù)
c:\squid\sbin\squid -i
啟動(dòng)服務(wù)
net start squid

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

相關(guān)文章

最新評論