Nginx - worker connections exceed open file resource limit 1024

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск

Nginx - worker connections exceed open file resource limit 1024

Ошибка в логах

2024/05/22 19:11:27 [warn] 2588252#2588252: 10240 worker_connections exceed open file resource limit: 1024


Решение - добавить в main для nginx:

# vi /etc/nginx/nginx.conf
worker_rlimit_nofile 65535;
# vi /etc/default/nginx
ULIMIT="-n 65535"


# systemctl restart nginx


Документация

https://nginx.org/en/docs/ngx_core_module.html#worker_rlimit_nofile