3
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?