1

我有一个 8 核和 32Gb 内存的服务器,我使用 Nginx,这是我的配置:

user www-data;
worker_processes 16;
pid /var/run/nginx.pid;
worker_rlimit_nofile 100000;

events {
        worker_connections 4000;

        use epoll;

        multi_accept on;
}

http {
        open_file_cache          max=200000 inactive=20s;
        open_file_cache_valid    30s;
        open_file_cache_min_uses 2;
        open_file_cache_errors   on;

        sendfile on;
        client_max_body_size 2048m;

        tcp_nopush  on;
        tcp_nodelay on;

        keepalive_timeout  15 15;
#       keepalive_requests 100000;

        reset_timedout_connection on;

        client_header_timeout  1m;
        client_body_timeout    1m;
        send_timeout           1m;

        types_hash_max_size 2048;
        server_tokens off;

        gzip              on;
        gzip_disable      "msie6";
        gzip_buffers      256 4k;
        gzip_comp_level   5;
#       gzip_http_version 1.0;
        gzip_min_length   1280;
        gzip_types        text/plain text/css application/x-javascript text/xml application/xml application/xml+rss application/json text/javascript image/x-icon image/bmp;
        gzip_vary         on;

        include /etc/nginx/mime.types;
        default_type application/octet-stream;

        access_log /var/log/nginx/access.log;
        error_log /var/log/nginx/error.log;

        include /etc/nginx/conf.d/*.conf;
        include /etc/nginx/sites-enabled/*;
}

在我的网站上,当我看到 5 部电影之后,我必须等待或关闭并重新启动我的 Chrome 才能观看其他 5 部电影......

在 Chrome 网络中,我可以看到 URL,但状态为:(待定),没有其他...我可以在 Chrome 上看到(在左下角):等待可用的套接字

有人有解决办法吗?我的 nginx.conf 好吗?

认真的,提前谢谢

4

0 回答 0