Bind9: named "max open files (1024) is smaller than max sockets (4096)"

Bind9: named "max open files (1024) is smaller than max sockets (4096)"

Po upgrade Debiana z Etch do Lenny bind9 w logach możemy zobaczyć komunikat: „max open files (1024) is smaller than max sockets (4096)”.
Na google szukałem chwilę, ale znalazłem.
Teraz też pomogło:

Kod:
ulimit -HSn 8192
# /etc/init.d/bind9 restart

no i w logach mamy:

Kod:
using up to 4096 sockets

Misja wykonana!

Podczas poszukiwań znalazłem rozwiązanie podczas uruchomienia systemu: dla użytkowników – http://ss64.com/bash/limits.conf.html
a dla administratora w pliku .bash_profile: http://ss64.com/bash/ulimit.html
Za powyższymi linkami:

Kod:
# cat /etc/security/limits.conf
[...]
* soft nofile 8192
* hard nofile 8192
@root soft nofile 8192
@root hard nofile 8192
@bind soft nofile 8192
@bind hard nofile 8192

i działa podczas startu.

Dodaj komentarz

Twój adres e-mail nie zostanie opublikowany. Wymagane pola są oznaczone *

Back To Top