`
ol_beta
  • 浏览: 281921 次
  • 性别: Icon_minigender_1
  • 来自: 天津
社区版块
存档分类
最新评论

varnish 缓存到硬盘

阅读更多

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

 

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

 

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

 

 

 vi /etc/default/varnish

DAEMON_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/

1
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics