我在我的nginx-error.log文件中收到此错误:
2014/02/17 03:42:20 [crit] 5455#0: *1 connect() to unix:/tmp/uwsgi.sock failed (13: Permission denied) while connecting to upstream, client: xx.xx.x.xxx, server: localhost, request: "GET /users HTTP/1.1", upstream: "uwsgi://unix:/tmp/uwsgi.sock:", host: "EC2.amazonaws.com"
Run Code Online (Sandbox Code Playgroud)
浏览器还显示502 Bad Gateway Error.a的输出curl是相同的,Bad Gateway html
我试图通过将权限更改为/tmp/uwsgi.sock777 来修复它.这不起作用.我也把自己加入了www-data小组(一些看似相似的问题).此外,没有骰子.
这是我的nginx.conf档案:
nginx.conf
worker_processes 1;
worker_rlimit_nofile 8192;
events {
worker_connections 3000;
}
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" …Run Code Online (Sandbox Code Playgroud) 我正在尝试运行Nginx,但我收到以下错误:
bind()到0.0.0.0:80失败(10013:尝试以其访问权限禁止的方式访问套接字)
请提供一些帮助,说明我需要做些哪些改变才能使其正常工作?
我尝试在80以外的端口上运行,但它确实有效.但我需要它在80上运行.
注意:我在Windows 7上运行,命令提示符以管理员身份运行.