varnishadm

varnishadm -S /etc/varnish/secret -T [ADDRESS:]PORT

eg: varnishadm -S /etc/varnish/secret -T 127.0.0.1:6082 ;这能打开varnish的命令行管理工具

    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    
    
    配置文件相关:
        vcl.list 
        vcl.load:装载,加载并编译;
        vcl.use:激活;
        vcl.discard:删除;
        vcl.show [-v] <configname>:查看指定的配置文件的详细信息;
        
    运行时参数:
        param.show -l:显示列表;
        param.show <PARAM>
        param.set <PARAM> <VALUE>
        
    缓存存储:
        storage.list
        
    后端服务器:
        backend.list 
        
VCL:VCL-DCL ; 配置参数有“域”的概念,即不同区域使用的参数内容不同,不同的引擎不一样
    ”域“专有类型的配置语言;
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 缓存的基础知识 1、程序本身具有局部性 时间局部性过去访问到的数据,也有可能被两次访问 空间局部性一个数据被访问到...
    魏镇坪阅读 2,078评论 1 3
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,915评论 18 139
  • NAME dnsmasq - A lightweight DHCP and caching DNS server....
    ximitc阅读 2,929评论 0 0
  • 编译自(有时会添加自己的话,可能不会明显标记出来):https://www.varnish-cache.org/d...
    C86guli阅读 823评论 0 2
  • 1.介绍 运维日常: 2.Web Page Cache: varnish2.0,3.0处理过程 varnish4....
    尛尛大尹阅读 3,410评论 0 0