Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx + default {deferred|bind} = корки
Alex Vorona пишет:
nest tmp # cat ./nginx.conf
user apache apache;
worker_processes 1;
error_log /dev/null;
events {
worker_connections 1000;
use epoll;
}
http {
server {
listen 127.0.0.1:80;
access_log off;
error_log /dev/null;
stub_status on;
}
server{
listen 80 default deferred;
# listen 80 default;
}
}
nest tmp # ./nginx -t -c ./nginx.conf
2007/05/21 08:09:43 [info] 1416#0: the configuration file ./nginx.conf
syntax is ok
2007/05/21 08:09:43 [info] 1416#0: the configuration file ./nginx.conf
was tested successfully
nest tmp # ./nginx -c ./nginx.conf
Ошибка сегментирования (core dumped)
nest tmp # uname -srm
Linux 2.6.20.3-grsec x86_64
аналогичное поведение при замене deferred на bind
на i386 - ругань в логи после попытки запуска
2007/05/29 08:59:28 [emerg] 12979#0: bind() to 127.0.0.1:80 failed (98:
Address already in use)
2007/05/29 08:59:28 [emerg] 12979#0: still could not bind()
Это вообще нормальное поведение при таком конфиге? Как я понимаю,
проблема в неверном порядке bind()
|