Nginx: accept() failed (24: Too many open files) while accepting new connection on

В /etc/security/limits.conf нужно добавить такие строки:

view sourceprint?
1.
* soft nofile 16384
2.
* hard nofile 16384
в текущей консоли от рута сделать
Продовжувати читання Nginx: accept() failed (24: Too many open files) while accepting new connection on

nginx: [warn] conflicting server name

Предупреждение при запуске nginx:

nginx: [warn] conflicting server name “YOURIPADDRESS” on YOURIPADDRESS:80, ignored
nginx: [warn] conflicting server name “YOURIPADDRESS” on YOURIPADDRESS:80, ignored
nginx: [warn] conflicting server name “YOURIPADDRESS” on YOURIPADDRESS:80, ignored

nginx: [emerg] bind() to YOURIPADDRESS:80 failed (98: Address already in use)
nginx: [emerg] bind() to YOURIPADDRESS:80 failed (98: Address already in use)
nginx: [emerg] bind() to YOURIPADDRESS:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()
already running.

Решение:
# cd /etc/nginx/vhosts
# perl -pi -w -e ‘s/server_name(.*) YOURIPADDRESS/server_name$1/g;’ *

Now go to WHM > Tweak settings and change Apache non-SSL IP/port to 0.0.0.0:8081