Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nginx не биндится, упорно хоч ет 80 порт!
- To: nginx-ru@xxxxxxxxx
- Subject: Re: nginx не биндится, упорно хоч ет 80 порт!
- From: Sergey Shepelev <temotor@xxxxxxxxx>
- Date: Wed, 10 Jun 2009 18:15:08 +0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=miL1rDR9FAuY1OT/iNzvgU8EGQZtMK/7oqx1Jl2VVs0=; b=KivZdZHJ+024bEpP80EfrCF9HEzQnEoaR0NaqOD3RFmjlelLnMpFC9kwbSSsT2jrw2 K1k+gDbkL/EVi94xnU8VoRVBc9MAKWiv2P2xL+XGv2RioQmooz4L2QnJ59l3pEgZ5wg/ BO/ilWmaW85NnaRv9Seyi/nztVP/6X2wBTdTg=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=wbGf9aeJEW/Iym8TD6Repo10viB8FeDz64F4F3JgqW4POI4RVDgeYcFdwZJinUUs6E MqLvjBWg/s+qvXY2sK068RHLrmmp3f9OzJrDXxU9GsbhWMDVKqKF+Pyh3s4mYDNIWMH7 ycQxrqqP9avCgLhVYDzd4pqomUiUmU0jnYbwc=
- In-reply-to: <91818af80906100642l6ca4d36dp2ed76b314d13bf17@xxxxxxxxxxxxxx>
- References: <91818af80906100642l6ca4d36dp2ed76b314d13bf17@xxxxxxxxxxxxxx>
2009/6/10 Anton Kuznetsov <maybe@xxxxxxxxxxxx>:
> Напасть какая-то.. Решил на новом сервере завернуть текущие вебы под нжинкс,
> т.к. сервер уже рабочий пробую начать делать конфиг с перевернутыми портами,
> рабочий веб - 80, нжинкс - что-то временное.
>
> # uname -a
> Linux ubuntu 2.6.28-11-server #42-Ubuntu SMP Fri Apr 17 02:45:36 UTC 2009
> x86_64 GNU/Linux
>
> # nginx -v
> nginx version: nginx/0.8.0
>
> Конфиг просто две строчки добавил:
>
> # more /etc/nginx/nginx.conf
> user www-data;
> worker_processes 1;
>
> error_log /var/log/nginx/error.log;
> pid /var/run/nginx.pid;
>
> events {
> worker_connections 1024;
> }
>
> http {
> include /etc/nginx/mime.types;
> default_type application/octet-stream;
>
> access_log /var/log/nginx/access.log;
>
> sendfile on;
> tcp_nopush on;
>
> directio 8m;
> keepalive_timeout 65;
> tcp_nodelay on;
>
> include /etc/nginx/conf.d/*.conf;
> include /etc/nginx/sites-enabled/*;
Ответ лежит в этих инклюдах.
>
> server {
> listen 8888 default;
> server_name demo.qq.com;
> location / {
> proxy_pass http://127.0.0.1;
> }
> } #server 8888
>
> }# http
>
> Запускаем:
>
> # /etc/init.d/nginx start
> the configuration file /etc/nginx/nginx.conf syntax is ok
> configuration file /etc/nginx/nginx.conf test is successful
> Starting nginx: [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in
> use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)
> [emerg]: still could not bind()
> nginx.
>
> Какого ... ему надо от 80 порта??? Как его отвадить от этой любви по
> умолчанию?
>
>
>
> --
> Best regards,
> Anton Kuznetsov.
>
|