nginx: [warn] 2048 worker_connections exceed open file resource limit: 1024
I have a problem and none of the solutions work that i find on Internet.
Most of the solutions tell me to add worker_rlimit_nofile 65535; in nginx.conf, but this file if I add anything in it... Nginx Manager will not work on restart! With Engintron i had no problems!
-
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 -
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 -
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:10
Please sign in to leave a comment.
Comments
8 comments