本文介绍了清漆配置文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我刚刚安装了清漆并准备好服务网页。
I have just installed varnish and its ready to serve web pages.
问题是我们达到了打开文件的限制。
已将 ulimit
设置为清漆用户。
Problem is that we are hitting open files limit.
We have already set ulimit
to varnish user.
我们想找到一个可以编写此配置的文件:
We want to find a file where we can write this configuration:
# 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
中找到它,或者在 / etc / default / varnish中找到它
(如果您使用的是Debian / Ubuntu)
The file you're looking for is the Varnish daemon config script. You can find this (usually) in the /etc/sysconfig/varnish
if you're on Redhat/RHEL, or /etc/default/varnish
if you're on Debian/Ubuntu
这篇关于清漆配置文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!