Skip to main content

nginx: [warn] 2048 worker_connections exceed open file resource limit: 1024

Comments

8 comments

  • cPanelAnthony
    Hello! You need to make nginx configuration changes via custom configuration files rather than directly editing the nginx configuration file. Can you let me know if this article helps?
    0
  • AlphaPrime
    Hello! You need to make nginx configuration changes via custom configuration files rather than directly editing the nginx configuration file. Can you let me know if this article helps?
    0
  • AlphaPrime
    Hello! You need to make nginx configuration changes via custom configuration files rather than directly editing the nginx configuration file. Can you let me know if this article helps?
    0
  • AlphaPrime
    my nginx.conf if someone needs it include /etc/nginx/conf.d/modules/*.conf; user nobody; worker_processes auto; worker_rlimit_nofile 65535; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 4096; } 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" ' '"$http_user_agent" "$http_x_forwarded_for"'; access_log /var/log/nginx/access.log main; include /etc/nginx/conf.d/*.conf; sendfile on; #tcp_nopush on; keepalive_timeout 65; gzip on; gzip_vary on; gzip_min_length 10240; gzip_proxied expired no-cache no-store private auth; gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml; gzip_disable "MSIE [1-6]\."; }
    0
  • cPanelAnthony
    It sounds like you're still trying to modify the main nginx.conf file, which won't work properly as changes will be overwritten.
    0
  • HostNoc
    HI You need to make changes in site Niginx configuration file like /etc/nginx/testnginx.conf likefollowing #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } Let me know if this helps
    0
  • Bidi
    HI You need to make changes in site Niginx configuration file like /etc/nginx/testnginx.conf likefollowing #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } Let me know if this helps

    Not working. nginx: [emerg] "worker_processes" directive is not allowed here in /etc/nginx/conf.d/newnginx.conf:1 nginx: configuration file /etc/nginx/nginx.conf test failed nginx: [emerg] "worker_rlimit_nofile" directive is not allowed here in /etc/nginx/conf.d/newnginx.conf:1
    0
  • cPRex Jurassic Moderator
    Can you check the details here and see if that gets things working?
    0

Please sign in to leave a comment.