Varnish 基础概览10

2022-06-30 00:13:28 浏览数 (1)

##varnishadm

会提供一个交互界面,可用于对运行中的 varnish ,进行交互式管理

代码语言:javascript复制
[root@h101 varnish]# varnishadm 
200        
-----------------------------
Varnish Cache CLI 1.0
-----------------------------
Linux,2.6.32-504.el6.x86_64,x86_64,-smalloc,-smalloc,-hcritbit
varnish-4.0.3 revision b8c4a34

Type 'help' for command list.
Type 'quit' to close CLI session.

varnish> 
varnish> 
varnish> help
200        
help [<command>]
ping [<timestamp>]
auth <response>
quit
banner
status
start
stop
vcl.load <configname> <filename>
vcl.inline <configname> <quoted_VCLstring>
vcl.use <configname>
vcl.discard <configname>
vcl.list
param.show [-l] [<param>]
param.set <param> <value>
panic.show
panic.clear
storage.list
vcl.show [-v] <configname>
backend.list [<backend_expression>]
backend.set_health <backend_expression> <state>
ban <field> <operator> <arg> [&& <field> <oper> <arg>]...
ban.list

varnish> 

其它的命令可以参阅 The Varnish Reference Manual

更为全面地交代了Varnish的工作原理和http请求的基础知识 Welcome to the Varnish Book


原文地址

0 人点赞