Nginx: stat() failed (13: permission denied)

后端 未结 16 1858
梦谈多话
梦谈多话 2020-12-04 05:04

I am using the default config while adding the specific directory with nginx installed on my ubuntu 12.04 machine.

server {
        #listen   80; ## listen          


        
16条回答
  •  爱一瞬间的悲伤
    2020-12-04 06:00

    On CentOS 7.0 I had this Access Deined problem caused by SELinux and these steps resolved the issue:

    yum install -y policycoreutils-devel
    grep nginx /var/log/audit/audit.log | audit2allow -M nginx
    semodule -i nginx.pp
    

    Update: Just a side-note from what I've learned while using digitalocean's virtual Linux servers, or as they call them Droplets. Using SELinux requires a decent amount of RAM. It's most probably like you won't be able to run and manage SELinux on a droplet with less than 2GB of RAM.

提交回复
热议问题