nginx: [alert] could not open error log file: open() “/var/log/nginx/error.log” failed (13: Permission denied)
2020/06/05 14:19:42 [warn] 27204#0: the “user” directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:5
2020/06/05 14:19:42 [emerg] 27204#0: mkdir() “/var/lib/nginx/tmp/client_body” failed (13: Permission denied)
解决办法: 用root用户启动 ,然后就能启动成功了