当前位置: 代码迷 >> 综合 >> Nginx启动报错:could not open error log file: open() /usr/local/nginx/logs/error.log failed
  详细解决方案

Nginx启动报错:could not open error log file: open() /usr/local/nginx/logs/error.log failed

热度:16   发布时间:2023-11-17 13:16:06.0

启动nginx:

      问题:nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13: Permission denied)
2018/09/13 14:50:07 [emerg] 49801#0: open() "/usr/local/nginx/logs/access.log" failed (13: Permission denied)

解决方法:

 当前用户权限不够,使用root用户

访问localhost,来到nginx欢迎页面,说明nginx安装成功。

 

 

  相关解决方案