对于使用PHP7的fastcgi_pass,权限被拒绝
我使用PHP7.0运行LEMP。 我已经在我的服务器块 fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; 但是,当我打开该网站时,它会返回502错误的网关。 以下是错误日志。 *1 connect() to unix:/var/run/php/php7.0-fpm.sock failed (13: Permission denied) while connecting to upstream, client: xxx.xxx.xxx.xxx, server: example.com, request: "GET / HTTP1.1", upstream: "fsatcgi://unix:/var/run/php/php7.0-fpm.sock:", host: "example.com" 它说权限被拒绝 。 这里有什么问题? 我已经检查,但我似乎无法find什么需要给予什么样的权限。 谢谢。