解决No backends or directors found in VCL program, at least one is necessary. Running VCC-compiler failed, exit 1

安装varnish的时候看网上教程运行:

varnishd -f /usr/local/varnish/etc/varnish/default.vcl -s malloc,1G -g varnish -u varnish -T 127.0.0.1:2000

出现错误:

No backends or directors found in VCL program, at least one is necessary. Running VCC-compiler failed, exit 1

发现错误的原因是default.vcl配置文件路径出错,解决办法就是删除 -f /usr/local/varnish/etc/varnish/default.vcl 参数启动,如果启动不了就需要:

find / -name default.vcl

填写正确路径就可以正常启动了.

本文为原创文章,转载请注明出处。

原文链接:https://850406.xyz/post/解决no-backends-or-directors-found-in-vcl-program-at-least-one-is-necessary-running-vcc-compiler-failed-exit-1

评论(0)

还没有评论,来抢沙发吧~

验证码