我无法连接服务器ngnix:无法连接

时间:2016-01-29 16:55:10

标签: nginx

我在

中没有收到任何错误消息
/var/log/nginx/error.log

我使sudo服务nginx重新启动确定

/etc/nginx/nginx.conf中的我的代码是=> https://codeshare.io/q9Nr3

/etc/nginx/sites-available/default中的我的代码是=> https://codeshare.io/Rm7wP

当我在nginx -s reload

中执行我的代码时

miguel@127:/$ nginx -s reload nginx: [alert] could not open error log file: open() "/var/log/nginx/error.log" failed (13: Permission denied) 2016/01/29 21:02:32 [warn] 3471#0: the "user" directive makes sense only if the master process runs with super-user privileges, ignored in /etc/nginx/nginx.conf:1 2016/01/29 21:02:32 [notice] 3471#0: signal process started 2016/01/29 21:02:32 [alert] 3471#0: kill(1154, 1) failed (1: Operation not permitted)

我输入了我的终端sudo chmod -R 755 / var / log / nginx,但我没有获得权限

0 个答案:

没有答案