nginx + default {deferred|bind} = корки

Александр Ворона voron at amhost.net
Tue May 29 18:02:29 MSD 2007


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()






More information about the nginx-ru mailing list