{"id":231,"date":"2013-07-22T20:21:03","date_gmt":"2013-07-22T12:21:03","guid":{"rendered":"http:\/\/www.361.xxx\/?p=184"},"modified":"2013-07-22T20:21:03","modified_gmt":"2013-07-22T12:21:03","slug":"%e6%95%99%e7%a8%8bwindows%e4%b8%8bsquid%e7%9a%84%e7%ae%80%e6%98%93%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"http:\/\/www.cyups.com\/?p=231","title":{"rendered":"[\u6559\u7a0b]Windows\u4e0bSquid\u7684\u7b80\u6613\u914d\u7f6e"},"content":{"rendered":"<p>\u4e0a\u6b21\u6211\u4ee5\u4e2a\u4eba\u7b14\u8bb0\u7684\u5185\u5bb9\u5199\u4e86Linux\u4e0bSquid\u7684\u7b80\u6613\u914d\u7f6e\u65b9\u6848\uff08<a title=\"[\u6559\u7a0b]\u4f7f\u7528Squid\u642d\u5efa\u652f\u6301IPv6\u7684\u4ee3\u7406\" href=\"http:\/\/zhainan.org\/post-1399.html\" target=\"_blank\" rel=\"noopener noreferrer\" rel=\"nofollow\" >\u4f7f\u7528Squid\u642d\u5efa\u652f\u6301IPv6\u7684\u4ee3\u7406<\/a>\uff09\uff0c\u8fd9\u6b21\u5c31\u62ffWindows\u4e0b\u624b\uff0c\u540c\u6837\u7684\u4ee5\u6700\u5c0f\u914d\u7f6e\u642d\u5efaSquid\u7f13\u5b58\u670d\u52a1\u5668\u3002\u4e0b\u4e00\u7248\u7684MiniServer\u4e5f\u5c06\u5185\u7f6eSquid For Windows\uff0c\u671f\u5f85\u5427~<br \/>\n\u5176\u5b9eWindows\u4e0b\u6709\u8bb8\u591a\u4ee3\u7406\u6216\u8005\u7f13\u5b58\u670d\u52a1\u5668\u7684\u642d\u5efa\u5e73\u53f0\uff0c\u53ea\u4e0d\u8fc7\u56e0\u4e3a\u6211Squid\u7528\u7740\u987a\u624b\u4e86\uff0c\u5c31\u62ffSquid\u6765\u8bf4\u3002Squid\u5b98\u65b9\u5e76\u6ca1\u6709\u7f16\u8bd1\u597d\u7684Windows\u7248\u672c\uff0c\u4f46\u662f\u56fd\u5916\u5927\u795e\u5f88NB\uff0c\u6709\u73b0\u6210\u7684~~<a href=\"http:\/\/www.acmeconsulting.it\/SquidNT.htm\" target=\"_blank\" rel=\"noopener noreferrer\" rel=\"nofollow\" >http:\/\/www.acmeconsulting.it\/SquidNT.htm<\/a>\u00a0\u4e3a\u4e86\u4fdd\u8bc1\u7a33\u5b9a\u6027\uff0c\u6211\u4eec\u53ef\u4ee5\u9009\u75282.7\u7248\u672c\u7684\u3002Squid For Windows\u548cLinux\u7684\u914d\u7f6e\u5927\u540c\u5c0f\u5f02\uff0c\u53ea\u4e0d\u8fc7\u662f\u6709\u4e9b\u5b9a\u4e49\u8def\u5f84\u7684\u5730\u65b9\u9700\u8981\u6ce8\u610f\uff0c\u5426\u5219\u4f1a\u65e0\u6cd5\u542f\u52a8\u3002\u6709\u70b9BUG\u7684\u662f\uff0c\u4f5c\u8005\u7f16\u8bd1\u65f6\u9ed8\u8ba4\u7684\u8def\u5f84\u662f C:squid \uff0c\u6240\u4ee5\uff0c\u5982\u679c\u4e0d\u89e3\u538b\u5230\u8fd9\u4e2a\u8def\u5f84\u4e0b\uff0c\u4f1a\u5bfc\u81f4squid\u4e0d\u65ad\u62a5\u9519\u3002\u8fd9\u91cc\u5c31\u9700\u8981\u8bbe\u7f6e\u4e00\u4e0b\u8def\u5f84\u3002<\/p>\n<h2>\u73af\u5883\u51c6\u5907<\/h2>\n<p>\u4e0a\u8ff0\u7684\u7f51\u7ad9\u6211\u6b7b\u6d3b\u6ca1\u6709\u627e\u5230\u4e0b\u8f7d\u5730\u5740\u2026\u2026\u8fd9\u91cc\u7ed9\u5927\u5bb6\u63d0\u4f9b\u53e6\u5916\u4e00\u4e2a\uff08<a title=\"http:\/\/www.mycodes.net\/16\/2500.htm\" href=\"http:\/\/www.mycodes.net\/16\/2500.htm\" target=\"_blank\" rel=\"noopener noreferrer\" rel=\"nofollow\" >\u4e0b\u8f7d\u4f20\u9001\u95e8<\/a>\uff09\uff0c\u4e0b\u8f7dSquid For Windows\uff0c\u5e76\u89e3\u538b\u3002<br \/>\n\u8bf4\u660e\uff1a\u5982\u679c\u89e3\u538b\u5230C:squid\uff0c\u6267\u884c\u6587\u4ef6\u8def\u5f84\u4e3aC:squidsbinsquid.exe\uff0c\u90a3\u5c31\u53ef\u4ee5\u8df3\u8fc7\u672c\u6b65\u9aa4<br \/>\n\u6211\u4eec\u4ee5\u89e3\u538b\u5230D:MiniServerOtherSquid\u4e3a\u4f8b<\/p>\n<h3>1.\u89e3\u538b\u5e76\u6539\u540d<\/h3>\n<p>\u66f4\u6539\u914d\u7f6e\u6587\u4ef6\u540d\u79f0\uff0c\u627e\u5230etc\u76ee\u5f55\uff0c\u5c06\u6240\u6709\u6587\u4ef6\u7684.default\u540e\u7f00\u5220\u9664\uff0c\u8fd8\u539fconf\u540e\u7f00\u3002<\/p>\n<h3>2.\u5b89\u88c5\u670d\u52a1<\/h3>\n<h4>\u547d\u4ee4\u884c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff0c\u5c06Squid\u5b89\u88c5\u4e3a\u7cfb\u7edf\u670d\u52a1<\/h4>\n<div id=\"highlighter_45092\">\n<div>\n<div>\n&nbsp;\n<\/div>\n<\/div>\n<div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>D:MiniServerOtherSquidsbinsquid -i -f <\/code><code>\"D:MiniServerOtherSquidetcsquid.conf\"<\/code> <code>-n <\/code><code>\"MiniServ_Squid\"<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u6309\u7167\u4f5c\u8005\u8bf4\u660e\uff0c\u5982\u679c\u81ea\u5b9a\u4e49\u4e86\u5b89\u88c5\u76ee\u5f55\uff0c\u5219\u5fc5\u987b\u7528 -f \u53c2\u6570\u5b9a\u4e49\u914d\u7f6e\u6587\u4ef6\u6240\u5728\u8def\u5f84\uff08\u641e\u6bdb\u554a~\u8fd9\u4e2a\u592a\u86cb\u75bc\u4e86\uff09\uff0c-n \u540e\u9762\u7684\u00a0MiniServ_Squid \u4e3a\u670d\u52a1\u540d\u79f0\uff0c\u53ef\u4ee5\u81ea\u5b9a\u4e49\uff0c\u4e5f\u53ef\u4ee5\u4e0d\u5e26 -n \u53c2\u6570<\/p>\n<h4>\u751f\u6210\u7f13\u5b58\u6587\u4ef6\u5939<\/h4>\n<div id=\"highlighter_609275\">\n<div>\n<div>\n&nbsp;\n<\/div>\n<\/div>\n<div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>D:MiniServerOtherSquidsbinsquid -z -f <\/code><code>\"D:MiniServerOtherSquidetcsquid.conf\"<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<h2>\u914d\u7f6eSquid<\/h2>\n<p>\u76f8\u5bf9Linux\u800c\u8a00\uff0cSquid For Windows\u5e76\u6ca1\u6709\u591a\u5c11\u4e0d\u540c\uff0c\u5982\u679c\u81ea\u5b9a\u4e49\u4e86\u5b89\u88c5\u8def\u5f84\uff0c\u5219\u9700\u8981\u5728squid.conf\u914d\u7f6e\u6587\u4ef6\u4e2d\u589e\u52a0\u6216\u6539\u53d8\u4ee5\u4e0b\u51e0\u884c\u3002\u5c06\u5176\u4e2d\u7684\u8def\u5f84\u66ff\u6362\u5373\u53ef\uff0c\u5176\u4ed6\u914d\u7f6e\u53ef\u4ee5\u53c2\u7167Linux\u7684\u914d\u7f6e\uff08<a title=\"[\u6559\u7a0b]\u4f7f\u7528Squid\u642d\u5efa\u652f\u6301IPv6\u7684\u4ee3\u7406\" href=\"http:\/\/zhainan.org\/post-1399.html\" target=\"_blank\" rel=\"noopener noreferrer\" rel=\"nofollow\" >\u4f7f\u7528Squid\u642d\u5efa\u652f\u6301IPv6\u7684\u4ee3\u7406<\/a>\uff09\u3002<\/p>\n<div id=\"highlighter_213707\">\n<div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>cache_dir ufs D:\/MiniServer\/Other\/Squid\/<\/code><code>var<\/code><code>\/cache <\/code><code>1024<\/code> <code>16<\/code> <code>256<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>access_log D:\/MiniServer\/Other\/Squid\/<\/code><code>var<\/code><code>\/logs\/access.log squid<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>logfile_daemon D:\/MiniServer\/Other\/Squid\/libexec\/logfile-daemon.exe<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>cache_log D:\/MiniServer\/Other\/Squid\/<\/code><code>var<\/code><code>\/logs\/cache.log<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>cache_store_log D:\/MiniServer\/Other\/Squid\/<\/code><code>var<\/code><code>\/logs\/store.log<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>mime_table D:\/MiniServer\/Other\/Squid\/etc\/mime.conf<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>pid_filename D:\/MiniServer\/Other\/Squid\/<\/code><code>var<\/code><code>\/logs\/squid.pid<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>netdb_filename D:\/MiniServer\/Other\/Squid\/<\/code><code>var<\/code><code>\/logs\/netdb.state<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>diskd_program D:\/MiniServer\/Other\/Squid\/libexec\/diskd-daemon.exe<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>unlinkd_program D:\/MiniServer\/Other\/Squid\/libexec\/unlinkd.exe<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>icon_directory D:\/MiniServer\/Other\/Squid\/share\/icons<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>error_directory D:\/MiniServer\/Other\/Squid\/share\/errors\/Simplify_Chinese<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<h2>\u7f13\u5b58\u642d\u5efa<\/h2>\n<p>\u642d\u5efa\u524d\u7aef\u7f13\u5b58\u670d\u52a1\u5668\uff0c\u5173\u952e\u547d\u4ee4\u662f\u4ee5\u4e0b\u4e09\u884c\u3002\u5f53\u7136\uff0c\u8fd8\u6709\u5176\u4ed6\u53c2\u6570\uff0c\u8fd9\u91cc\u6211\u5c31\u4e0d\u591a\u8bf4\u4e86\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0a\u8ff0Linux\u914d\u7f6e<br \/>\n\u5982\u679c\u53ea\u9700\u8981\u505a\u4ee3\u7406\u670d\u52a1\u5668\uff0c\u90a3\u4e48\u53ea\u9700\u8981\u5bf9\u8bbf\u95ee\u63a7\u5236\u505a\u8c03\u6574\u5373\u53ef\uff0c\u53ef\u4ee5\u53c2\u8003\u4e0a\u8ff0Linux\u914d\u7f6e<\/p>\n<div id=\"highlighter_221801\">\n<div>\n<div>\n&nbsp;\n<\/div>\n<\/div>\n<div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>#Squid\u76d1\u542c\u7aef\u53e3\uff0cvhost\u5fc5\u987b\u6709\uff0c\u5426\u5219\u5c06\u65e0\u6cd5\u8f6c\u53d1\u81f3\u540e\u7aef\u670d\u52a1\u5668<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>http_port <\/code><code>80<\/code> <code>vhost<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>#\u5b9a\u4e49\u540e\u7aef\u670d\u52a1\u5668\u7684IP\u548c\u7aef\u53e3<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>cache_peer <\/code><code>127.0<\/code><code>.<\/code><code>0.1<\/code> <code>parent <\/code><code>80<\/code> <code>0<\/code> <code>no-query originserver name=www<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>cache_peer_domain www <\/code><code>127.0<\/code><code>.<\/code><code>0.1<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<h2>\u53c2\u6570<\/h2>\n<p>\u5f53\u5b89\u88c5\u597dSquid For Windows\u540e\uff0c\u542f\u52a8\u548c\u5173\u95ed\u53ef\u4ee5\u901a\u8fc7\u63a7\u5236\u9762\u677f\u8fdb\u884c\u64cd\u4f5c\uff0c\u4e5f\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e0b\u7528net\u547d\u4ee4\u542f\u52a8\u5173\u95ed\u3002<br \/>\n\u5378\u8f7d\u7684\u8bdd\u548c\u5b89\u88c5\u4e00\u6837\uff0c\u53ea\u9700\u8981\u628a -i \u53c2\u6570\u53d8\u4e3a -r \u5373\u53ef\uff0c\u5982<\/p>\n<div id=\"highlighter_829972\">\n<div>\n<div>\n<table>\n<tbody>\n<tr>\n<td><\/td>\n<td><code>D:MiniServerOtherSquidsbinsquid -r -f <\/code><code>\"D:MiniServerOtherSquidetcsquid.conf\"<\/code> <code>-n <\/code><code>\"MiniServ_Squid\"<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<p>\u53ef\u4ee5\u7528binsquidclient.exe \u6765\u68c0\u67e5\uff0c\u57fa\u672c\u7684\u4f7f\u7528\u65b9\u6cd5<br \/>\nsquid\u8fd0\u884c\u72b6\u6001\u4fe1\u606f\uff1a squidclient -p [Squid\u76d1\u542c\u7aef\u53e3] mgr:info<br \/>\nsquid\u5185\u5b58\u4f7f\u7528\u60c5\u51b5\uff1a squidclient -p [Squid\u76d1\u542c\u7aef\u53e3]\u00a0mgr:mem<br \/>\nsquid\u5df2\u7ecf\u7f13\u5b58\u7684\u5217\u8868\uff1a squidclient -p [Squid\u76d1\u542c\u7aef\u53e3]\u00a0mgr:objects. use it carefully,it may crash<br \/>\nsquid\u7684\u78c1\u76d8\u4f7f\u7528\u60c5\u51b5\uff1a squidclient -p [Squid\u76d1\u542c\u7aef\u53e3]\u00a0mgr:diskd<br \/>\n\u66f4\u591a\u7684\u4fe1\u606f\uff1asquidclient -h \u6216\u8005 squidclient -p [Squid\u76d1\u542c\u7aef\u53e3]\u00a0mgr<\/p>\n<div><input type=\"hidden\" name=\"wurl\" value=\"http:\/\/zhainan.org\/post-1536.html\" \/> <input type=\"hidden\" name=\"wtitle\" value=\"[\u6559\u7a0b]Windows\u4e0bSquid\u7684\u7b80\u6613\u914d\u7f6e\" \/><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u6b21\u6211\u4ee5\u4e2a\u4eba\u7b14\u8bb0\u7684\u5185\u5bb9\u5199\u4e86Linux\u4e0bSquid\u7684\u7b80\u6613\u914d\u7f6e\u65b9\u6848\uff08\u4f7f\u7528Squid\u642d\u5efa\u652f\u6301IPv6\u7684\u4ee3\u7406\uff09\uff0c\u8fd9\u6b21\u5c31\u62ffWindows\u4e0b\u624b &#8230;<\/p>\n","protected":false},"author":1,"featured_media":231,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"emotion":"","emotion_color":"","title_style":"","license":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-231","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-8"],"_links":{"self":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=231"}],"version-history":[{"count":0,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/231\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=\/wp\/v2\/posts\/231"}],"wp:attachment":[{"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cyups.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}