khi*_*ari 9 webserver configuration-files 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"
Run Code Online (Sandbox Code Playgroud)
qwe*_*eet 29
您正在寻找的文件是Varnish守护程序配置脚本./etc/sysconfig/varnish如果您使用的是Redhat/RHEL,或者/etc/default/varnish如果您使用的是Debian/Ubuntu ,您可以找到(通常)
小智 7
这是在centos linux服务器上
/etc/sysconfig/varnish
/etc/varnish/default.vcl
Run Code Online (Sandbox Code Playgroud)
如果你想把清漆放在apache前面,你还必须更改httpd配置文件来更改端口
/etc/httpd/conf/httpd.conf
Run Code Online (Sandbox Code Playgroud)
来源:如何在Centos 6上使用Apache安装和配置Varnish
| 归档时间: |
|
| 查看次数: |
32947 次 |
| 最近记录: |