我们目前有一个 Web 应用程序,可以在 Ubuntu 1.10.3 上运行的 Nginx 上的 angular 框架上运行。尝试访问该站点的错误日志是:
30364#30364: 1000 worker_connections are not enough
30364#30364: *5179370 recv() failed (104: Connection reset by peer) while
reading response header from upstream server:mysite request: "GET /
HTTP/1.1" upstream: myip:80 host:mysite
30364#30364: 1000 worker_connections are not enough
30364#30364: *5179454 no live upstreams while connecting to upstream
Run Code Online (Sandbox Code Playgroud)
我的 Nginx.conf:
user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 1000;
}
http{
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
types_hash_max_size 2048;
include /etc/nginx/mime.types; …Run Code Online (Sandbox Code Playgroud) nginx ×1