Last active
August 29, 2015 14:14
-
-
Save kakerukaeru/cd24d9c752f623c1f919 to your computer and use it in GitHub Desktop.
varnish_運用コマンド ref: http://qiita.com/kakerukaeru/items/0ee86aaea19ecb1ac058
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 構文check | |
| varnishd -C -f /tmp/test.vcl | |
| ## clientとのやり取りのlog | |
| varnishlog -C | |
| ### よくこれでStatusだけcheckしたりしてる | |
| varnishlog -C | grep Status | |
| ## backendとのやり取りのlog | |
| varnishlog -b |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## 認証でコケたら | |
| varnishadm -T localhost:6082 -S /etc/varnish/secret | |
| ## なにつかえるのん | |
| varnishadm help | |
| ## 現在アクティブなconfig | |
| varnishadm vcl.list | awk ' /^active/ { print $3 } ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## キャッシュパージ | |
| curl -X PURGE http://localhost/hogehoge.png | |
| ## 全部のキャッシュパージ | |
| varnishadm "ban.url .*" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment