{"id":2453,"date":"2013-01-20T12:07:01","date_gmt":"2013-01-20T04:07:01","guid":{"rendered":"https:\/\/kyle.ai\/blog\/?p=2453"},"modified":"2013-01-20T12:07:48","modified_gmt":"2013-01-20T04:07:48","slug":"varnish%e4%b8%8d%e9%87%8d%e5%90%af%e4%bd%bf%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6%e7%94%9f%e6%95%88%e7%9a%84%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/2453.html","title":{"rendered":"Varnish\u4e0d\u91cd\u542f\u4f7f\u914d\u7f6e\u6587\u4ef6\u751f\u6548\u7684\u65b9\u6cd5"},"content":{"rendered":"<p><span style=\"font-size: small;\">\u5047\u8bbe\u542f\u52a8\u7684varnish\u670d\u52a1\u5982\u4e0b\uff1a<\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/usr\/sbin\/varnishd -P \/var\/run\/varnishd.pid -a :80 -T localhost:6082 -f \/etc\/varnish\/default.vcl -S \/etc\/varnish\/secret -s malloc,150m\r\n<\/pre>\n<p><span style=\"font-size: small;\">\u4f7f\u7528\u4e0b\u9762\u7684\u547d\u4ee4\uff1a<\/span><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n#\u67e5\u770b\u53ef\u7528\u7684\u547d\u4ee4\u5217\u8868 -S \u53c2\u6570\u4e3a\u6307\u5b9a\u5bc6\u7801\u6587\u4ef6\u3002\r\nvarnishadm -T 127.0.0.1:6082 -S \/etc\/varnish\/secret help\r\n\r\n#\u8f7d\u5165\u65b0vcl\u914d\u7f6e\u6587\u4ef6\r\nvarnishadm -T 127.0.0.1:6082 -S \/etc\/varnish\/secret vcl.load default.vcl \/etc\/varnish\/default.vcl\r\nVCL compiled.\r\n\r\n#\u67e5\u770b\u5df2\u6709\u7684\u914d\u7f6e\u5217\u8868\r\nvarnishadm -T 127.0.0.1:6082 -S \/etc\/varnish\/secret vcl.list\r\n\r\n#\u4f7f\u7528\u6211\u4eec\u521a\u52a0\u8f7d\u7684\u65b0\u914d\u7f6e\u6587\u4ef6\r\nvarnishadm -T 127.0.0.1:6082 -S \/etc\/varnish\/secret vcl.use default.vcl\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5047\u8bbe\u542f\u52a8\u7684varnish\u670d\u52a1\u5982\u4e0b\uff1a \/usr\/sbin\/varnishd -P \/var\/run\/varnis [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-2453","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/2453","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=2453"}],"version-history":[{"count":2,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/2453\/revisions"}],"predecessor-version":[{"id":2455,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/2453\/revisions\/2455"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=2453"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=2453"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=2453"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}