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

启动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)

Nginx启动报错:could not open error log file: open()

解决方法:

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

Nginx启动报错:could not open error log file: open()

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

Nginx启动报错:could not open error log file: open()

 

 

你可能感兴趣的:(nginx,Linux系统篇,Nginx技术篇)