gpt4 book ai didi

webserver - Varnish 配置文件在哪里?

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

我刚刚安装了 varnish,它已准备好提供网页服务。

问题是我们达到了打开文件限制。
我们已经将 ulimit 设置为 varnish 用户。

我们想要找到一个可以写入此配置的文件:

# Maximum number of open files
NFILES=131072

# Locked shared memory, default log size is 82MB + header
MEMLOCK=82000

## Configuration with VCL
#
# Listen on port 80, administration on localhost:6082, and forward to
# one content server selected by the vcl file, based on the request. Use a
# fixed-size cache file.
#
# Note: you must replace "example.org" with the outside IP address of your server
# - this is the address at which Varnish receives incoming requests.
# $wgSquidServers in MediaWiki's LocalSettings.php will also need to list all addresses for this Varnish cache.
#
DAEMON_OPTS="-a example.org:80 \
-T localhost:6082 \
-f /etc/varnish/default.vcl \
-u varnish -g varnish \
-s file,/var/lib/varnish/varnish_storage.bin,4G"

最佳答案

您要查找的文件是 Varnish 守护进程配置脚本。如果您使用的是 Redhat/RHEL,则通常可以在 /etc/sysconfig/varnish 中找到它;如果您使用的是 Redhat/RHEL,则可以在 /etc/default/varnish 中找到它。 Debian/Ubuntu

关于webserver - Varnish 配置文件在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9422225/

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