读书人

varnish 徐存到硬盘

发布时间: 2013-11-08 17:51:56 作者: rapoo

varnish 缓存到硬盘

方法一:在启动的时候设置

?

varnishd -s file,/var/lib/varnish/varnish_storage.bin,50%

?

方法二:修改默认启动文件

?

?

 vi /etc/default/varnishDAEMON_OPTS="-a :9350 \             -T localhost:9351 \             -f /etc/varnish/default.vcl \             -S /etc/varnish/secret \                 -s file,/mnt/varnish/varnish_storage.bin,200G"

?

参考:http://nwlinux.com/varnish-file-storage-malloc-or-file/

读书人网 >开源软件

热点推荐