ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Alexander Vasiliev <vav.email@gmail.com>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: [Comm] nginx не слушает сеть
Date: Mon, 11 Jul 2011 17:51:16 +0400
Message-ID: <CABK4c9o9K+FJfv4hUnhCmrX+oUt8jm_NqsXzB0M2Bi6Syp6AEg@mail.gmail.com> (raw)

Имею
# apt-repo
rpm [p6] rsync://ftp.altlinux.org/ALTLinux/p6/branch i586 classic
rpm [p6] rsync://ftp.altlinux.org/ALTLinux/p6/branch noarch classic

# rpm -q nginx
nginx-1.0.0-alt2

Конфигурация nginx "из пакета".
server {
        listen  localhost:80;
        # can't use wildcards in first server_name
        server_name localhost localhost.localdomain;

        location / {
            root /var/www/html;

        }



Стартую nginx.
# service nginx start
Checking configuration sanity for nginx:                     [ DONE ]
Starting nginx service:                                              [ DONE ]

# service nginx status
nginx is running

Но сеть на 80 порту не слушает.
# netstat --protocol inet -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address
     State       PID/Program name
tcp        0      0 0.0.0.0:22                  0.0.0.0:*
     LISTEN      3366/sshd
tcp        0      0 0.0.0.0:43871               0.0.0.0:*
     LISTEN      2811/rpc.statd
tcp        0      0 0.0.0.0:111                 0.0.0.0:*
     LISTEN      2760/rpcbind
udp        0      0 0.0.0.0:780                 0.0.0.0:*
                 2760/rpcbind
udp        0      0 0.0.0.0:59999               0.0.0.0:*
                 2811/rpc.statd
udp        0      0 0.0.0.0:867                 0.0.0.0:*
                 2811/rpc.statd
udp        0      0 0.0.0.0:111                 0.0.0.0:*
                 2760/rpcbind

В логах /var/log/messages
Jul 11 17:32:16 test-dmz nginx: nginx: the configuration file
/etc/nginx/nginx.conf syntax is ok
Jul 11 17:32:16 test-dmz nginx: nginx: configuration file
/etc/nginx/nginx.conf test is successful
Jul 11 17:32:16 test-dmz nginx: Checking configuration sanity for
nginx:  succeeded
Jul 11 17:32:16 test-dmz nginx: nginx startup succeeded

Логи nginx'a пусты
# ls -l /var/log/nginx/
итого 0
-rw-r--r-- 1 root root 0 Июл 11 15:56 error.log
-rw-r--r-- 1 root root 0 Июл 11 15:56 nginx.error.log

Подскажите, пожалуйста, что нужно сделать чтобы заставить nginx слушать сеть?

-- 
Alexander Vasiliev
vav.email@gmail.com


             reply	other threads:[~2011-07-11 13:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 13:51 Alexander Vasiliev [this message]
2011-07-11 13:58 ` Aleksey Novodvorsky
2011-07-11 14:09   ` Yuri Khachaturyan
2011-07-11 18:32     ` Alexander Vasiliev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABK4c9o9K+FJfv4hUnhCmrX+oUt8jm_NqsXzB0M2Bi6Syp6AEg@mail.gmail.com \
    --to=vav.email@gmail.com \
    --cc=community@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git