LoginSignup
3
4

More than 5 years have passed since last update.

varnish_運用コマンド

Last updated at Posted at 2015-02-05

varnishこまんど

## 構文check
varnishd -C -f /tmp/test.vcl 

## clientとのやり取りのlog
varnishlog -C 
### よくこれでStatusだけcheckしたりしてる
varnishlog -C | grep Status

## backendとのやり取りのlog
varnishlog -b  

varnishadm

## 認証でコケたら
varnishadm -T localhost:6082 -S /etc/varnish/secret

## なにつかえるのん
varnishadm help

## 現在アクティブなconfig
varnishadm vcl.list | awk ' /^active/ { print $3 } '

curl

## キャッシュパージ
curl -X PURGE http://localhost/hogehoge.png

## 全部のキャッシュパージ
varnishadm "ban.url .*"
3
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
4