時(shí)間:2015/6/28來(lái)源:IT貓撲網(wǎng)作者:網(wǎng)管聯(lián)盟我要評(píng)論(0)
一.下載squid for windows
下載地址:https://www.acmeconsulting.it/SquidNT.html
二.安裝與配置
1.解壓squid-2.6.STABLE6-NT-bin.zip到C:\squid
2.單擊[開始],選擇"運(yùn)行",輸入 cmd ,在命令提示符窗口內(nèi)輸入以下命令:
C:\>cd c:\squid\etc
C:\squid\etc>copy squid.conf.default squid.conf
**將Squid的默認(rèn)配置文件復(fù)制一份并起名為squid.conf
C:\squid\etc>copy mime.conf.default mime.conf
**將mime.conf.default復(fù)制一份并起名為mime.conf
3.編輯squid.conf,根據(jù)需要添加和修改以下內(nèi)容
http_port 3128 ;定義squid監(jiān)聽端口
visible_hostname tianwei-itrus :定義機(jī)器名
cache_mem 64 MB ;定義代理服務(wù)器緩存
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255 :定義本地網(wǎng)絡(luò)為localhost
acl outnetwork 192.168.10.0/255.255.255.0
acl SSL_ports port 443
acl Safe_ports port 80 # 定義http端口
acl Safe_ports port 21 # 定義ftp端口
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 1863 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access allow localhost manager
http_access allow outnetwork
icp_access allow all
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_reply_access allow all
icp_access allow all
http_access deny all
三.啟動(dòng)
c:\>cd c:\squid\sbin
C:\squid\sbin>squid -i (注冊(cè)Squid為Windows的服務(wù))
C:\squid\sbin>squid -z (生成高速緩存的目錄)
C:\squid\sbin>squid
關(guān)鍵詞標(biāo)簽:Windows,squid
相關(guān)閱讀
熱門文章 VMware中Shared Folders(共享文件夾)的配CentOS NTP服務(wù)器安裝與配置實(shí)戰(zhàn):RemoteApp服務(wù)器應(yīng)用程序安裝nginx搭建flv流媒體服務(wù)器
人氣排行 VMware中Shared Folders(共享文件夾)的配置nginx搭建flv流媒體服務(wù)器CentOS NTP服務(wù)器安裝與配置修改Windows Server 遠(yuǎn)程登錄(遠(yuǎn)程桌面)最大連接數(shù)目nginx的自動(dòng)啟動(dòng)腳本heartbeat+LVS-ipvsadm+ldirectord搭建lvs DR集群Windows 2003下配置架設(shè)NTP時(shí)間服務(wù)器五步解決“服務(wù)器超出最大允許連接數(shù)”錯(cuò)誤