How to setup Varnish logging?

前端 未结 5 1931
野性不改
野性不改 2020-12-08 22:47

I want to get Varnish to log requests. I found the command varnishlog -a -w /var/log/varnish.log, but it does not log anything.

Then I found that Varnis

5条回答
  •  情歌与酒
    2020-12-08 23:26

    The files /etc/default/varnish* are deprecated in systems with systemd. just run these commands:

    systemctl enable varnishncsa.service
    systemctl start varnishncsa.service
    

    you can also modify the daemon parameters in /lib/systemd/system/varnishncsa.service

提交回复
热议问题