大网数据广告活动
服务器运维问答

How to show list of installed/loaded varnish vmod's names in command line?

· 52CE 我爱测

I installed varnish 4.1 and compiled some vmods in a linux (ubuntu14 and centos7). Now I want to check list of installed vmod or loaded vmod to check if they are properly installed, recognized properly by varnish and loaded. I'm …

问题原文

原帖链接 · Joel Handwell · CC BY-SA 3.0

I installed varnish 4.1 and compiled some vmods in a linux (ubuntu14 and centos7). Now I want to check list of installed vmod or loaded vmod to check if they are properly installed, recognized properly by varnish and loaded. I'm aware that # ls -al /usr/lib/varnish/vmods command will list up the vmod files but this does not make sure the vmods are installed/loaded successfully.

While I search varnish reference I found a varnish-counter field called vmods, but it is to show the total number of loaded vmods in varnishstat, and not shows vmods by names. Also, varnishstat command is not suitable for this use case as the command is intended to display one time in stdout, and not keep real time update as varnishstats does.

How to compose command to show list of varnish vmods by names?

已采纳解答

原帖链接 · Tollef Fog Heen · CC BY-SA 3.0

Listing loaded vmods is not supported. I suggest you file a bug asking for this, or to get it exposed through the varnishstat interfaces. (varnishstat can be run in oneshot mode by adding the -1 flag.)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-04-13)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。