openrestry 安装之后 报"/usr/local/openresty/nginx/html/index.html" is forbidden (13: Permission denied), client: 10.0.4.118, server: localhost, request: "GET / HTTP/1.1"

 

Permission denied错误是权限问题。

  "/usr/local/openresty/nginx/html/index.html" is forbidden (13: Permission denied), client: 10.0.4.118, server: localhost, request: "GET / HTTP/1.1"

权限应该为755

chmod -R 755 *

"/usr/local/openresty/nginx/html/index.html" is forbidden (13: Permission denied), client: 10.0.4.118, server: localhost, request: "GET / HTTP/1.1"

访问正常

相关文章:

  • 2021-12-02
  • 2021-11-15
  • 2022-12-23
  • 2021-08-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-25
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-01-16
  • 2021-09-12
相关资源
相似解决方案