57 网友分享了链接
2020-08-14 14:51:45
启动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启动成功。