记录一次nginx的bug问题failed(13:Permission denied)

记录一次nginx的bug问题failed(13:Permission denied)

2020/05/22 14:56:26 [error] 11506#0: *1 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"
2020/05/22 15:01:23 [crit] 11506#0: *2 stat() "/home/puaiuc/app/dist/index.html" failed (13: Permission denied), client: 10.19.86.5, server: 10.19.86.5, request: "GET / HTTP/1.1", host: "10.19.86.5"

通过查看nginx日志,出现了failed (13: Permission denied)错误,发现是权限的问题,就将/etc/nginx/nginx.conf中的第一行改为 user root
在这里插入图片描述

重启nginx指令,进入到nginx的sbin目录下,

./nginx -s reload 
  • 8
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值