【发布时间】:2017-09-09 13:57:29
【问题描述】:
我正在使用 Apache 2.4 开发 Centos 6.8,安装 varnish 并为我的 Magento 2 站点正确配置了所有内容。
我已安装 SLL 证书,因此我将 -p feature=+esi_ignore_https 添加到我的 sysconfig 文件中。
一开始看起来一切都很好
> service varnish restart
> Stopping Varnish Cache: [ OK ]
> Starting Varnish Cache: [ OK ]
然后当我用
启动 Varnish CLI> varnishd -d -f /etc/varnish/default.vcl
>
> Type 'help' for command list.
> Type 'quit' to close CLI session.
> Type 'start' to launch worker process.
>
> **socket(): Address family not supported by protocol**
当我进入开始时,我会得到一个无限循环
Child cleanup complete
socket(): Address family not supported by protocol
child (30530) Started
Child (30530) said Child starts
Child (30530) died signal=6
Child (30530) Panic message:
Assert error in vca_acct(), cache/cache_acceptor.c line 386:
Condition((listen(ls->sock, cache_param->listen_depth)) == 0) not true.
errno = 98 (Address already in use)
thread = (cache-acceptor)
version = varnish-4.0.4 revision 386f712
ident = Linux,2.6.32-042stab113.11,x86_64,-smalloc,-smalloc,-hcritbit,epoll
Backtrace:
0x432425: varnishd() [0x432425]
0x40d71d: varnishd() [0x40d71d]
0x7f105722aaa1: /lib64/libpthread.so.0(+0x7aa1) [0x7f105722aaa1]
0x7f1056f77bcd: /lib64/libc.so.6(clone+0x6d) [0x7f1056f77bcd]
当我尝试登录 varnishlog 时
无法打开 VSM 文件(废弃的 VSM 文件(清漆未运行?) /var/lib/varnish/patriciasouths.com/_.vsm)
【问题讨论】:
-
你知道 Varnish 不支持 HTTPS,对吧?你必须使用 NGINX 之类的东西来终止 HTTPS,然后传递给 Varnish。
标签: apache centos magento2 varnish