各位,
我在我的 Ubuntu 20.04 服务器上安装了 Varnish 。 Magento2 和 Apache Web 服务在其上工作。当我按照说明涂抹 Varnish 时,它不起作用。任何人都可以帮忙。
提前谢谢大家!
/image/PfQg6.png
最佳答案
我注意到您的 varnish.service
文件归 vcache
所有并且有 rw-r--r--
权限。
我建议你执行chown root:root varnish.service
,因为我假设 systemd 没有打开文件的正确权限。
还请验证服务文件是否托管在 /etc/systemd/sytem
中。 ,因为您的一张屏幕截图表明其中一些文件存储在 /etc/systemd
中.
Long story short, systemd will try to start services using the
root
user. Make sure this user has read and execute permissions to access this file.
关于apache - 配置后 Varnish 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66011288/