gpt4 book ai didi

ubuntu - Varnish digitalocean 配置指南 : Symbol not found: 'req.backend.healthy' (expected type BOOL): 后出错

转载 作者:行者123 更新时间:2023-12-03 17:45:21 37 4
gpt4 key购买 nike

我关注了这个 https://www.digitalocean.com/community/tutorials/how-to-configure-varnish-for-drupal-with-apache-on-debian-and-ubuntu在运行 /etc/init.d/varnish restart 之后我收到了这个错误:

 * Stopping HTTP accelerator varnishd                                    [fail]
* Starting HTTP accelerator varnishd [fail]
Message from VCC-compiler:
Symbol not found: 'req.backend.healthy' (expected type BOOL):
('input' Line 44 Pos 9)
if (req.backend.healthy)
--------###################-

Running VCC-compiler failed, exited with 2

VCL compilation failed

第 44 行是
if (req.backend.healthy)
{
set req.grace = 60s;
}
else
{
set req.grace = 30m;
}

我看到这个帖子 https://www.varnish-cache.org/lists/pipermail/varnish-misc/2014-May/023692.html这似乎认为它与版本有关。我在 Ubuntu 14.04 上运行 4.0.3 修订版 b8c4a34。

最佳答案

Varnish 4.* 与 Varnish 3.* 略有不同

如您所见,req.backend.healthy 不再存在 here .这样做的新方法是:

std.healthy(req.backend_hint)

关于ubuntu - Varnish digitalocean 配置指南 : Symbol not found: 'req.backend.healthy' (expected type BOOL): 后出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30959487/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com