nginx启动报错:nginx: [alert] could not open error log file: open() "/usr/nginx/logs/

210 阅读1分钟

nginx启动报错:nginx: [alert] could not open error log file: open() "/usr/nginx/logs/error.log" failed (13: Permission denied)

如图

image.png

操作:

./nginx 启动./nginx

解决:

su root切换成root用户
再次启动nginx
查看  ps aux|grep nginx image.png

11FCB77E.gif