问题:
nginx: [alert] could not open error log file: open() "/usr/local/nginx/logs/error.log" failed (13: Permission denied) 2018/08/12 00:01:05 [emerg] 1977#0: mkdir() "/usr/local/nginx/client_body_temp" failed (13: Permission denied)
分析:
error.log 日志记录文件和Permission denied(没有权限)都帮助指引我们是没有写权限的问题
解决:
sudo /usr/local/nginx/sbin/nginx 以root权限启动就行了