Nginx不能重启-错误



尝试后nginx -t和service nginx restartnginx -s realload 我发现了以下错误。知道怎么修理它们吗?谢谢你的回答。

nm@srv:/etc/nginx/sites-available$ nginx -s reloadNginx: [alert] could not open error log file: open()"/var/log/nginx/error.log" failed (13: Permission denied)只有当主进程以超级用户权限运行时,"user"指令才有意义,在/etc/nginx/nginx.conf:1中忽略2015/08/03 09:12:35[警告]13513#0:在0.0.0.0:80上出现服务器名称"venusfactorfreetrial.sandbox.modpreneur.com"冲突,被忽略2015/08/03 09:12:35[通知]13513#0:信号处理启动2015/08/03 09:12:35 [alert] 13513#0: kill(1031,1) failed (1: Operation not allowed)

nm@srv:/etc/nginx/sites-available$ nginx -tNginx: [alert] could not open error log file: open()"/var/log/nginx/error.log" failed (13: Permission denied)只有当主进程以超级用户权限运行时,"user"指令才有意义,在/etc/nginx/nginx.conf:1中忽略2015/08/03 09:16:02[警告]13565#0:在0.0.0.0:80上出现服务器名称"venusfactorfreetrial.sandbox.modpreneur.com"冲突,被忽略Nginx:配置文件/etc/nginx/nginx.conf语法正确2015/08/03 09:16:02 [emg] 13565#0:打开()"/运行/nginx。pid" failed (13: Permission denied)Nginx:配置文件/etc/Nginx/Nginx .conf test failed

就做sudo service nginx reload

最新更新