Windows下安裝squid的步驟詳解
更新時(shí)間:2012年09月29日 00:40:18 作者:
squid軟件一般常用于代理中,也是最常見(jiàn)的代理軟件,在linux下配置squid以前已經(jīng)說(shuō)過(guò)了,下面介紹下Windows下安裝squid已經(jīng)配置的詳細(xì)方法
一.下載squid for windows
下載地址:
http://www.acmeconsulting.it/SquidNT.html
http://www.dhdzp.com/softs/43599.html
二.Windows下安裝squid與配置
1.解壓squid-2.6.STABLE6-NT-bin.zip到C:\squid
2.單擊[開(kāi)始],選擇“運(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)聽(tīng)端口
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
三.Windows下安裝squid完成后,啟動(dòng)squid
c:\>cd c:\squid\sbin
C:\squid\sbin>squid -i (注冊(cè)Squid為Windows的服務(wù))
C:\squid\sbin>squid -z (生成高速緩存的目錄)
C:\squid\sbin>squid
下載地址:
http://www.acmeconsulting.it/SquidNT.html
http://www.dhdzp.com/softs/43599.html
二.Windows下安裝squid與配置
1.解壓squid-2.6.STABLE6-NT-bin.zip到C:\squid
2.單擊[開(kāi)始],選擇“運(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)聽(tīng)端口
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
三.Windows下安裝squid完成后,啟動(dòng)squid
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)文章
開(kāi)啟OCSP提升https證書(shū)驗(yàn)證效率解決Let’s Encrypt SSL證書(shū)訪問(wèn)慢的問(wèn)題
這篇文章主要介紹了Apache、Nginx開(kāi)啟OCSP提升https證書(shū)驗(yàn)證效率解決Let’s Encrypt SSL證書(shū)訪問(wèn)慢的問(wèn)題,需要的朋友可以參考下2020-11-11
服務(wù)器安裝什么系統(tǒng)好 服務(wù)器系統(tǒng)詳細(xì)介紹與選擇推薦
有時(shí)候我們購(gòu)買(mǎi)了服務(wù)器或云主機(jī),服務(wù)器對(duì)于操作系統(tǒng)的選擇就是一個(gè)問(wèn)題,當(dāng)然肯定選擇一個(gè)你懂的能把安全做的差不多的,要不就找相關(guān)的技術(shù)人員幫你配置與推薦2017-08-08
HTTP 錯(cuò)誤 403.1禁止訪問(wèn):禁止執(zhí)行訪問(wèn)的完美解決方法
這篇文章主要介紹了HTTP 錯(cuò)誤 403.1禁止訪問(wèn):禁止執(zhí)行訪問(wèn)的完美解決方法,需要的朋友可以參考下2016-11-11
配置Memcache服務(wù)器并實(shí)現(xiàn)主從復(fù)制功能(repcached)
repcached是日本人開(kāi)發(fā)的實(shí)現(xiàn)memcached復(fù)制功能,它是一個(gè)單 master單 slave的方案,但它的 master/slave都是可讀寫(xiě)的,而且可以相互同步,如果 master壞掉, slave偵測(cè)到連接斷了,它會(huì)自動(dòng) listen而成為 master2012-03-03
華為昇騰920b服務(wù)器部署DeepSeek翻車(chē)現(xiàn)場(chǎng)演示
文章描述了在華為Kunpeng9205250服務(wù)器上部署DeepSeek模型的全過(guò)程,包括配置調(diào)整、使用ollama和nohupollama運(yùn)行模型、嘗試容器部署以及最終成功部署的步驟,過(guò)程中遇到了硬件兼容性、驅(qū)動(dòng)下載、鏡像獲取權(quán)限等問(wèn)題,并總結(jié)了解決方案,感興趣的朋友一起看看吧2025-02-02
Svn安裝和使用_動(dòng)力節(jié)點(diǎn)Java學(xué)院整理
這篇文章主要介紹了Svn安裝和使用,小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,也給大家做個(gè)參考。一起跟隨小編過(guò)來(lái)看看吧2017-08-08

