apache - 配置后 Varnish 失败

标签 apache ubuntu magento2 varnish varnish-vcl

各位,
我在我的 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/

相关文章:

jquery - npm install jquery 错误/saveError ENOENT/无效依赖

node.js - Ubuntu docker 容器上的 NodeJs?

css - 有没有一种简单的方法可以从网站检查窗口中找到 .css 源文件?

apache - 本地服务器和 Web 服务器有什么区别?

apache - Kubernetes Apache2被杀

java - 在执行文件操作时在 java 应用程序中打开太多文件描述符

php - Magento 2 Collection Date 按一小时过滤掉

indexing - Magento 2产品未显示前端

sql-server - 无法使用 Jmeter 创建类 'com.microsoft.sqlserver.jdbc.SQLServerDriver' 的 JDBC 驱动程序

java - 适用于大型项目的 Apache.Httpd+Php 或 Apache.Tomcat+Java