{"id":4218,"date":"2019-07-26T00:07:38","date_gmt":"2019-07-25T16:07:38","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4218"},"modified":"2019-07-26T00:07:40","modified_gmt":"2019-07-25T16:07:40","slug":"squid","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/squid","title":{"rendered":"squid\u547d\u4ee4 – \u4ee3\u7406\u670d\u52a1\u5668\u5b88\u62a4\u8fdb\u7a0b"},"content":{"rendered":"\n

squid\u547d\u4ee4\u662f\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u4ee3\u7406\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u8282\u7701\u7f51\u7edc\u5e26\u5bbd\uff0c\u63d0\u9ad8\u7f51\u7ad9\u7684\u8bbf\u95ee\u901f\u5ea6\uff0c\u5b83\u5bf9\u670d\u52a1\u5668\u786c\u4ef6\u7684\u5185\u5b58\u8981\u6c42\u6bd4\u8f83\u9ad8\u3002<\/p>\n\n\n\n

\u5b83\u652f\u6301FTP\u3001Gopher\u548cHTTP\u534f\u8bae\u7684\u6570\u636e\u5bf9\u8c61\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f: <\/strong> squid [\u53c2\u6570] <\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-d<\u8c03\u8bd5\u7b49\u7ea7><\/td>\u5c06\u6307\u5b9a\u8c03\u8bd5\u7b49\u7ea7\u7684\u4fe1\u606f\u53d1\u9001\u5230\u6807\u51c6\u9519\u8bef\u8bbe\u5907<\/td><\/tr>
-f<\u914d\u7f6e\u6587\u4ef6><\/td>\u4f7f\u7528\u6307\u5b9a\u7684\u914d\u7f6e\u6587\u4ef6\uff0c\u800c\u4e0d\u4f7f\u7528\u9ed8\u8ba4\u914d\u7f6e\u6587\u4ef6<\/td><\/tr>
-k<\/td>\u5411squid\u670d\u52a1\u5668\u53d1\u9001\u6307\u4ee4<\/td><\/tr>
-s<\/td>\u542f\u7528syslog\u65e5\u5fd7<\/td><\/tr>
-z<\/td>\u521b\u5efa\u7f13\u5b58\u76ee\u5f55<\/td><\/tr>
-C<\/td>\u4e0d\u6355\u83b7\u81f4\u547d\u4fe1\u53f7<\/td><\/tr>
-D<\/td>\u4e0d\u8fdb\u884cDNS\u53c2\u6570\u6d4b\u8bd5<\/td><\/tr>
-N<\/td>\u4ee5\u975e\u5b88\u62a4\u8fdb\u7a0b\u6a21\u5f0f\u8fd0\u884c<\/td><\/tr>
-X<\/td>\u5f3a\u5236\u8fdb\u5165\u5b8c\u5168\u8c03\u8bd5\u6a21\u5f0f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u521b\u5efa\u7f13\u5b58\u76ee\u5f55\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squid -z<\/pre>\n\n\n\n

\u4e0d\u6355\u83b7\u81f4\u547d\u4fe1\u53f7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squid -C<\/pre>\n\n\n\n

\u5f3a\u5236\u8fdb\u5165\u5b8c\u5168\u8c03\u8bd5\u6a21\u5f0f\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squid -X<\/pre>\n\n\n\n

\u542f\u7528syslog\u65e5\u5fd7\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squid -s<\/pre>\n\n\n\n

\u5173\u95edsquid\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squid -k shutdown<\/pre>\n\n\n\n

<\/p>\n","protected":false},"excerpt":{"rendered":"

squid\u547d\u4ee4\u662f\u4f7f\u7528\u6700\u5e7f\u6cdb\u7684\u4ee3\u7406\u670d\u52a1\u5668\u8f6f\u4ef6\uff0c\u53ef\u4ee5\u8282\u7701\u7f51\u7edc\u5e26\u5bbd\uff0c\u63d0\u9ad8\u7f51\u7ad9\u7684\u8bbf\u95ee\u901f\u5ea6\uff0c\u5b83\u5bf9\u670d\u52a1\u5668\u786c\u4ef6\u7684\u5185\u5b58\u8981\u6c42\u6bd4\u8f83 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4218"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=4218"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4218\/revisions"}],"predecessor-version":[{"id":4247,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4218\/revisions\/4247"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}