gpt4 book ai didi

docker - Varnish 错误 : Failed to open (any) accept sockets

转载 作者:行者123 更新时间:2023-12-02 19:12:25 25 4
gpt4 key购买 nike

我正在尝试重新启动 Vagrant 的容器sudo /etc/init.d/varnish restart中的 Varnish 服务,并且抛出这些错误:

/etc/init.d/varnish: 36: ulimit: error setting limit (Operation not permitted)
/etc/init.d/varnish: 36: ulimit: error setting limit (Operation not permitted)
[FAIL] Stopping HTTP accelerator: varnishd failed!
/etc/init.d/varnish: 36: ulimit: error setting limit (Operation not permitted)
[FAIL] Starting HTTP accelerator: varnishd failed!
bind(): Address already in use
bind(): Address already in use
bind(): Address already in use
bind(): Address already in use
Error: Failed to open (any) accept sockets.

我检查了第36行:
# Open files (usually 1024, which is way too small for varnish)
ulimit -n ${NFILES:-131072}

# Maxiumum locked memory size for shared memory log
ulimit -l ${MEMLOCK:-82000}

有什么建议可以解决问题吗?

最佳答案

问题是由于我升级了docker以及某些其他进程如何从最后一个容器继续工作而引起的。

sudo killall nginx


sudo killall varnish

然后重新启动服务
解决了问题

关于docker - Varnish 错误 : Failed to open (any) accept sockets,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32605224/

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