我刚刚安装了清漆并准备好提供网页服务。
问题是我们达到了打开文件限制。
我们已经设定了ulimit
给清漆用户。
我们想要找到一个可以写入此配置的文件:
# 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 守护进程配置脚本。您(通常)可以在/etc/sysconfig/varnish
如果您使用的是 Redhat/RHEL,或者/etc/default/varnish
如果你使用的是 Debian/Ubuntu
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)