nginx не биндится, упорно хочет 80 порт!

Anton Kuznetsov maybe at arjlover.net
Wed Jun 10 17:42:13 MSD 2009


Напасть какая-то.. Решил на новом сервере завернуть текущие вебы под нжинкс,
т.к. сервер уже рабочий пробую начать делать конфиг с перевернутыми портами,
рабочий веб - 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx-ru/attachments/20090610/63679625/attachment.html>


More information about the nginx-ru mailing list