Nginx - 24: Too many open files


Материал из Wiki - Iphoster - 'the best ever support'

Перейти к: навигация, поиск

Самые выгодные сервера‎ в рунете


# /etc/init.d/nginx start
Starting nginx: nginx: [emerg] open() "/var/log/httpd/domains/domain.cf.bytes" failed (24: Too many open files)
                                                          [FAILED]
 # ulimit -n 1000000
 # sysctl -w fs.file-max=1000000
 # vi /etc/sysctl.conf 
 fs.file-max = 1000000
 
# /etc/init.d/nginx start
Starting nginx:                                            [  OK  ]



# ulimit -a | grep open
open files                      (-n) 1000000
Индекс цитирования