Skip to content

Instantly share code, notes, and snippets.

@kakerukaeru
Last active August 29, 2015 14:14
Show Gist options
  • Save kakerukaeru/cd24d9c752f623c1f919 to your computer and use it in GitHub Desktop.
Save kakerukaeru/cd24d9c752f623c1f919 to your computer and use it in GitHub Desktop.
## 構文check
varnishd -C -f /tmp/test.vcl
## clientとのやり取りのlog
varnishlog -C
### よくこれでStatusだけcheckしたりしてる
varnishlog -C | grep Status
## backendとのやり取りのlog
varnishlog -b
## 認証でコケたら
varnishadm -T localhost:6082 -S /etc/varnish/secret
## なにつかえるのん
varnishadm help
## 現在アクティブなconfig
varnishadm vcl.list | awk ' /^active/ { print $3 } '
## キャッシュパージ
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