Nginx - 24: Too many open files: различия между версиями
Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Admin iph (обсуждение | вклад) |
Admin iph (обсуждение | вклад) |
||
Строка 7: | Строка 7: | ||
[FAILED] | [FAILED] | ||
# ulimit -n 1000000 | # ulimit -n 1000000 | ||
− | # /etc/init.d/nginx start | + | # sysctl -w fs.file-max=1000000 |
+ | # vi /etc/sysctl.conf | ||
+ | fs.file-max = 1000000 | ||
+ | |||
+ | # /etc/init.d/nginx start | ||
Starting nginx: [ OK ] | Starting nginx: [ OK ] | ||
Текущая версия на 12:07, 19 января 2016
# /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