{"id":198,"date":"2010-06-10T21:56:49","date_gmt":"2010-06-10T12:56:49","guid":{"rendered":"http:\/\/blog.xcir.net\/?p=198"},"modified":"2010-06-12T21:54:38","modified_gmt":"2010-06-12T12:54:38","slug":"%e6%84%8f%e5%a4%96%e3%81%a8%e3%82%84%e3%82%84%e3%81%93%e3%81%97%e3%81%84%e3%83%91%e3%82%b9%e3%83%af%e3%83%bc%e3%83%89%e3%81%8c%e3%81%8b%e3%81%8b%e3%81%a3%e3%81%9fvarnish%e7%ae%a1%e7%90%86%e3%83%9d","status":"publish","type":"post","link":"https:\/\/blog.xcir.net\/?p=198","title":{"rendered":"\u610f\u5916\u3068\u3084\u3084\u3053\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u304b\u304b\u3063\u305fVarnish\u7ba1\u7406\u30dd\u30fc\u30c8\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5"},"content":{"rendered":"<p>Varnish\u304c2.1.x\u306b\u4e0a\u304c\u3063\u3066\u7ba1\u7406\u30dd\u30fc\u30c8\u306b\u63a5\u7d9a\u3059\u308b\u969b\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304b\u3051\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u3067\u3082\u5b9f\u969b\u306e\u3068\u3053\u308d\u3069\u3046\u3059\u308b\u3093\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n<h4>varnishadm\u3092\u4f7f\u3046\u65b9\u6cd5<\/h4>\n<p>\u3053\u306e\u5834\u5408\u3059\u3054\u304f\u7c21\u5358\u3067\u3059<br \/>\n\u4f8b\u3048\u3070\u8d77\u52d5\u30d1\u30e9\u30e1\u30fc\u30bf\u304c<\/p>\n<pre class=\"brush: shell; \">\n\r\nDAEMON_OPTS=&quot;-a :6081 \\\r\n-T localhost:6082 \\\r\n-f \/etc\/varnish\/default.vcl \\\r\n-u varnish -g varnish \\\r\n-h classic,12978189 \\\r\n-S \/etc\/varnish\/secret \\\r\n-s malloc,300M \\\r\n-s file,\/var\/lib\/varnish\/varnish_storage.bin,1G&quot;\r\n\n<\/pre>\n<p>\u306e\u5834\u5408<\/p>\n<pre class=\"brush: shell; \">\n\r\n[root@LIP-APP-04 test]# varnishadm -T localhost:6082 -S \/etc\/varnish\/secret\r\n200 154\r\n-----------------------------\r\nVarnish HTTP accelerator CLI.\r\n-----------------------------\r\nType &#039;help&#039; for command list.\r\nType &#039;quit&#039; to close CLI session.\r\n\n<\/pre>\n<p>\u3068\u3044\u3063\u305f\u98a8\u306b\u30b3\u30f3\u30bd\u30fc\u30eb\u5165\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059<\/p>\n<h4>telnet\u3092\u4f7f\u3046\u5834\u5408<\/h4>\n<p><!--more--><br \/>\n\u3067\u306f\u5225\u306e\u30de\u30b7\u30f3\u3067\u306a\u304a\u304b\u3064varnishadm\u304c\u306a\u3044\u5834\u5408\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<br \/>\n2.0.x\u3067\u306ftelnet\u3067\u64cd\u4f5c\u51fa\u6765\u307e\u3057\u305f\u304c<\/p>\n<pre class=\"brush: shell; \">\n\r\n\r\n[root@LIP-APP-04 test]# telnet localhost 6082\r\nTrying 127.0.0.1...\r\nConnected to localhost.localdomain (127.0.0.1).\r\nEscape character is &#039;^]&#039;.\r\n107 59\r\nmpbxeoihbicspallnytmeeawmaanjidv\r\n\r\nAuthentication required.\r\n\r\nparam.show\r\n101 44\r\nUnknown request.\r\nType &#039;help&#039; for more info.\r\n\n<\/pre>\n<p>\u3068\u8a00\u3063\u305f\u3075\u3046\u306b\u3064\u306a\u304c\u308b\u3082\u306e\u306e\u64cd\u4f5c\u304c\u3067\u304d\u307e\u305b\u3093<\/p>\n<p>\u305d\u3053\u3067\u4f7f\u3046\u306e\u304c\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u3068\u304d\u306b\u3067\u308b<\/p>\n<pre class=\"brush: shell; \">\n\r\n[root@LIP-APP-04 test]# telnet localhost 6082\r\nTrying 127.0.0.1...\r\nConnected to localhost.localdomain (127.0.0.1).\r\nEscape character is &#039;^]&#039;.\r\n107 59\r\nzuuwxjvjxnlorauvkmbwehzypqegjexl\u2605\u3053\u308c\r\n\r\nAuthentication required.\r\n\n<\/pre>\n<p>\u3053\u306ezuuwxjvjxnlorauvkmbwehzypqegjexl\u3068\u3044\u3046\u8b0e\u6587\u5b57\u5217\u3068<br \/>\n\/etc\/varnish\/secret\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab<\/p>\n<pre class=\"brush: shell; \">\n\r\n[root@LIP-APP-04 ~]# cat \/etc\/varnish\/secret\r\nsyNpcH!60\u2605\u3053\u308c\r\n\n<\/pre>\n<p>\u306esyNpcH!60\u3092\u4f7f\u3044\u307e\u3059<br \/>\nvi\u3067\u3082cat\u3067\u3082\u4f55\u3067\u3082\u3044\u3044\u306e\u3067\u30d5\u30a1\u30a4\u30eb\u306e\u4e2d\u8eab\u304c<br \/>\nzuuwxjvjxnlorauvkmbwehzypqegjexl<span style=\"color: #ff0000;\"><strong>\\n<\/strong><\/span>syNpcH!60<span style=\"color: #ff0000;\"><strong>\\n<\/strong><\/span>zuuwxjvjxnlorauvkmbwehzypqegjexl<br \/>\n\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u3064\u304f\u308a\u307e\u3059(\u3053\u3053\u3067\u306flogin\u3068\u3057\u307e\u3059)<br \/>\n\u305d\u306e\u3067\u304d\u305f\u30d5\u30a1\u30a4\u30eb\u3092sha256sum\u306b\u304b\u3051\u305f\u7d50\u679c\u3092\u30e1\u30e2\u308a\u307e\u3059<\/p>\n<pre class=\"brush: shell; \">\n\r\n[root@LIP-APP-04 ~]# cat login\r\nzuuwxjvjxnlorauvkmbwehzypqegjexl\r\nsyNpcH!60\r\nzuuwxjvjxnlorauvkmbwehzypqegjexl\r\n[root@LIP-APP-04 ~]# hexdump -C login\r\n00000000  7a 75 75 77 78 6a 76 6a  78 6e 6c 6f 72 61 75 76  |zuuwxjvjxnlorauv|\r\n00000010  6b 6d 62 77 65 68 7a 79  70 71 65 67 6a 65 78 6c  |kmbwehzypqegjexl|\r\n00000020  0a 73 79 4e 70 63 48 21  36 30 0a 7a 75 75 77 78  |.syNpcH!60.zuuwx|\r\n00000030  6a 76 6a 78 6e 6c 6f 72  61 75 76 6b 6d 62 77 65  |jvjxnlorauvkmbwe|\r\n00000040  68 7a 79 70 71 65 67 6a  65 78 6c 0a              |hzypqegjexl.|\r\n0000004c\r\n[root@LIP-APP-04 ~]# sha256sum login\r\n0491b1160a491e33d428c28562f009bbd1b1f5ea7a85dd8312ddf366f9d30e5a  login\r\n\n<\/pre>\n<p>\u305d\u3053\u3067\u5f97\u305f\u5024\u3092telnet\u3067\u63a5\u7d9a\u3057\u305f\u5f8c\u306b<br \/>\nauth [sha256sum\u306e\u7d50\u679c]<br \/>\n\u3068\u6253\u3061\u307e\u3059<\/p>\n<pre class=\"brush: shell; \">\n\r\n[root@LIP-APP-04 test]# telnet localhost 6082\r\nTrying 127.0.0.1...\r\nConnected to localhost.localdomain (127.0.0.1).\r\nEscape character is &#039;^]&#039;.\r\n107 59\r\nzuuwxjvjxnlorauvkmbwehzypqegjexl\r\n\r\nAuthentication required.\r\n\r\nauth 0491b1160a491e33d428c28562f009bbd1b1f5ea7a85dd8312ddf366f9d30e5a\r\n200 154\r\n-----------------------------\r\nVarnish HTTP accelerator CLI.\r\n-----------------------------\r\nType &#039;help&#039; for command list.\r\nType &#039;quit&#039; to close CLI session.\r\n\r\n\n<\/pre>\n<p>\u3053\u308c\u3067\u8a8d\u8a3c\u304c\u3059\u307f\u307e\u3057\u305f<br \/>\n\u3059\u3093\u3054\u304f\u3084\u3084\u3053\u3057\u3044\u3067\u3059<br \/>\n\u3057\u304b\u3082\u3053\u306e\u30ad\u30fc\u306f\u6bce\u56de\u4f7f\u3048\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u30ef\u30f3\u30bf\u30a4\u30e0\u3067\u5909\u308f\u3063\u305f\u308a\u3057\u307e\u3059\uff1e\uff1c<\/p>\n<p><strong><span style=\"color: #ff0000;\">2010\/06\/12\u8ffd\u8a18<\/span><\/strong><\/p>\n<pre class=\"brush: shell; \">\n\r\n-S \/etc\/varnish\/secret \\\r\n\n<\/pre>\n<p>\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5916\u305b\u3070\u4eca\u307e\u3067\u901a\u308a\u30d1\u30b9\u8a8d\u8a3c\u306a\u3057\u3067\u3044\u3051\u307e\u3059\u3002<br \/>\n\u3082\u3061\u308d\u3093IP\u5236\u9650\u3060\u3051\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>\u53c2\u8003\u30b5\u30a4\u30c8<br \/>\n<a target=\"_blank\" href=\"http:\/\/varnish-cache.org\/wiki\/CLI\">The Varnish Command Line Interface<\/a><\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_hatena\"><a href='\/\/b.hatena.ne.jp\/add?mode=confirm&url=https%3A%2F%2Fblog.xcir.net%2F%3Fp%3D198&title=%E6%84%8F%E5%A4%96%E3%81%A8%E3%82%84%E3%82%84%E3%81%93%E3%81%97%E3%81%84%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%E3%81%8C%E3%81%8B%E3%81%8B%E3%81%A3%E3%81%9FVarnish%E7%AE%A1%E7%90%86%E3%83%9D%E3%83%BC%E3%83%88%E3%81%B8%E3%81%AE%E6%8E%A5%E7%B6%9A%E6%96%B9%E6%B3%95' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='https:\/\/blog.xcir.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/hatena.gif' alt='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' title='\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af\u306b\u8ffd\u52a0' width='16' height='12' class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_hatena_users\"><a href='\/\/b.hatena.ne.jp\/entry\/https:\/\/blog.xcir.net\/?p=198' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - \u610f\u5916\u3068\u3084\u3084\u3053\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u304b\u304b\u3063\u305fVarnish\u7ba1\u7406\u30dd\u30fc\u30c8\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='\/\/b.hatena.ne.jp\/entry\/image\/https:\/\/blog.xcir.net\/?p=198' alt='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - \u610f\u5916\u3068\u3084\u3084\u3053\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u304b\u304b\u3063\u305fVarnish\u7ba1\u7406\u30dd\u30fc\u30c8\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5' title='\u306f\u3066\u306a\u30d6\u30c3\u30af\u30de\u30fc\u30af - \u610f\u5916\u3068\u3084\u3084\u3053\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u304b\u304b\u3063\u305fVarnish\u7ba1\u7406\u30dd\u30fc\u30c8\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5'   class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_facebook\"><a href='http:\/\/www.facebook.com\/share.php?u=https%3A%2F%2Fblog.xcir.net%2F%3Fp%3D198&t=%E6%84%8F%E5%A4%96%E3%81%A8%E3%82%84%E3%82%84%E3%81%93%E3%81%97%E3%81%84%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%E3%81%8C%E3%81%8B%E3%81%8B%E3%81%A3%E3%81%9FVarnish%E7%AE%A1%E7%90%86%E3%83%9D%E3%83%BC%E3%83%88%E3%81%B8%E3%81%AE%E6%8E%A5%E7%B6%9A%E6%96%B9%E6%B3%95' title='Facebook \u306b\u30b7\u30a7\u30a2' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='https:\/\/blog.xcir.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/facebook.png' alt='Facebook \u306b\u30b7\u30a7\u30a2' title='Facebook \u306b\u30b7\u30a7\u30a2' width='16' height='16' class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_linkedin\"><a href='\/\/www.linkedin.com\/shareArticle?mini=true&url=https%3A%2F%2Fblog.xcir.net%2F%3Fp%3D198&title=%E6%84%8F%E5%A4%96%E3%81%A8%E3%82%84%E3%82%84%E3%81%93%E3%81%97%E3%81%84%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%E3%81%8C%E3%81%8B%E3%81%8B%E3%81%A3%E3%81%9FVarnish%E7%AE%A1%E7%90%86%E3%83%9D%E3%83%BC%E3%83%88%E3%81%B8%E3%81%AE%E6%8E%A5%E7%B6%9A%E6%96%B9%E6%B3%95' title='LinkedIn \u306b\u30b7\u30a7\u30a2' rel=nofollow class='wp_social_bookmarking_light_a' target=_blank><img src='https:\/\/blog.xcir.net\/wp-content\/plugins\/wp-social-bookmarking-light\/public\/images\/linkedin.png' alt='LinkedIn \u306b\u30b7\u30a7\u30a2' title='LinkedIn \u306b\u30b7\u30a7\u30a2' width='16' height='16' class='wp_social_bookmarking_light_img' \/><\/a><\/div>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/blog.xcir.net\/?p=198\" data-text=\"\u610f\u5916\u3068\u3084\u3084\u3053\u3057\u3044\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u304b\u304b\u3063\u305fVarnish\u7ba1\u7406\u30dd\u30fc\u30c8\u3078\u306e\u63a5\u7d9a\u65b9\u6cd5\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Varnish\u304c2.1.x\u306b\u4e0a\u304c\u3063\u3066\u7ba1\u7406\u30dd\u30fc\u30c8\u306b\u63a5\u7d9a\u3059\u308b\u969b\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u304b\u3051\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u3067\u3082\u5b9f\u969b\u306e\u3068\u3053\u308d\u3069\u3046\u3059\u308b\u3093\u3067\u3057\u3087\u3046\u304b\uff1f varnishadm\u3092\u4f7f\u3046\u65b9\u6cd5 \u3053\u306e\u5834\u5408\u3059\u3054\u304f\u7c21\u5358\u3067\u3059 \u4f8b\u3048\u3070\u8d77\u52d5\u30d1\u30e9\u30e1\u30fc\u30bf\u304c <a href='https:\/\/blog.xcir.net\/?p=198' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5,14],"class_list":["post-198","post","type-post","status-publish","format-standard","hentry","category-3","tag-varnish","tag-varnish2-1-2","category-3-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"_links":{"self":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=198"}],"version-history":[{"count":12,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions"}],"predecessor-version":[{"id":209,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=\/wp\/v2\/posts\/198\/revisions\/209"}],"wp:attachment":[{"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.xcir.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}