{"id":4220,"date":"2019-07-26T23:52:22","date_gmt":"2019-07-26T15:52:22","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=4220"},"modified":"2019-07-26T23:52:24","modified_gmt":"2019-07-26T15:52:24","slug":"squidclient","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/squidclient","title":{"rendered":"squidclient\u547d\u4ee4 – squid\u5ba2\u6237\u7aef\u7ba1\u7406\u5de5\u5177"},"content":{"rendered":"\n

squidclient\u547d\u4ee4\u4f7f\u7528squid\u670d\u52a1\u7684\u5ba2\u6237\u7aef\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u67e5\u770bsquid\u670d\u52a1\u7684\u8be6\u7ec6\u8fd0\u884c\u4fe1\u606f\u548c\u7ba1\u7406squid\u670d\u52a1\u5668\u3002<\/p>\n\n\n\n

\u4f7f\u7528squidclient\u547d\u4ee4\u94b1\u5fc5\u987b\u5148\u542f\u52a8squid\u670d\u52a1\u5668\u3002<\/p>\n\n\n\n

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

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n
-a<\/td>\u4e0d\u5305\u542b\u201cAccept\uff1aheader\u201d<\/td><\/tr>
-r<\/td>\u5f3a\u5236\u7f13\u5b58\u91cd\u65b0\u52a0\u8f7dURL<\/td><\/tr>
-s<\/td>\u5b89\u9759\u6a21\u5f0f\uff0c\u4e0d\u8f93\u51fa\u4fe1\u606f\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907<\/td><\/tr>
-h<\u4e3b\u673a><\/td>\u4ece\u6307\u5b9a\u4e3b\u673a\u83b7\u53d6URL\uff0c\u9ed8\u8ba4\u4e3b\u673a\u4e3a\u201clocalhost\u201d<\/td><\/tr>
-l<\u4e3b\u673a><\/td>\u6307\u5b9a\u4e00\u4e2a\u672c\u5730IP\u5730\u5740\u8fdb\u884c\u7ed1\u5b9a<\/td><\/tr>
-p<\/td>\u7aef\u53e3\u53f7\uff0c\u9ed8\u8ba4\u4e3a3128<\/td><\/tr>
-m<\u65b9\u6cd5><\/td>\u6307\u5b9a\u53d1\u9001\u8bf7\u6c42\u7684\u65b9\u6cd5\uff0c\u9ed8\u8ba4\u4e3a\u201cGET\u201d<\/td><\/tr>
-u<\u7528\u6237\u540d><\/td>\u4ee3\u7406\u8ba4\u8bc1\u7528\u6237\u540d<\/td><\/tr>
-p<\u5bc6\u7801><\/td>\u4ee3\u7406\u8ba4\u8bc1\u5bc6\u7801<\/td><\/tr>
-u<\u7528\u6237\u540d><\/td>WWW\u8ba4\u8bc1\u7528\u6237\u540d<\/td><\/tr>
-p<\u5bc6\u7801><\/td>WWW\u8ba4\u8bc1\u5bc6\u7801<\/td><\/tr><\/tbody><\/table>\n\n\n\n

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

\u663e\u793a\u53ef\u7528\u7684\u7ba1\u7406\u6307\u4ee4\u5217\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squidclient mgr:menu<\/pre>\n\n\n\n

\u4ece\u4e3b\u673a\u83b7\u53d6URL\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squidclient -h<\/pre>\n\n\n\n

\u7ed1\u5b9a192.168.10.10\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squidclient -l 192.168.10.10<\/pre>\n\n\n\n

\u5f3a\u5236\u7f13\u5b58\u91cd\u65b0\u52a0\u8f7dURL\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squidclient - r<\/pre>\n\n\n\n

\u4e0d\u8f93\u51fa\u4fe1\u606f\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# squidclient - s<\/pre>\n","protected":false},"excerpt":{"rendered":"

squidclient\u547d\u4ee4\u4f7f\u7528squid\u670d\u52a1\u7684\u5ba2\u6237\u7aef\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u67e5\u770bsquid\u670d\u52a1\u7684\u8be6\u7ec6\u8fd0\u884c\u4fe1\u606f\u548c\u7ba1\u7406sq […]<\/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\/4220"}],"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=4220"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4220\/revisions"}],"predecessor-version":[{"id":4335,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/4220\/revisions\/4335"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=4220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=4220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=4220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}