ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] nginx не слушает сеть
@ 2011-07-11 13:51 Alexander Vasiliev
  2011-07-11 13:58 ` Aleksey Novodvorsky
  0 siblings, 1 reply; 4+ messages in thread
From: Alexander Vasiliev @ 2011-07-11 13:51 UTC (permalink / raw)
  To: ALT Linux Community general discussions

Имею
# 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-11 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-11 13:51 [Comm] nginx не слушает сеть Alexander Vasiliev
2011-07-11 13:58 ` Aleksey Novodvorsky
2011-07-11 14:09   ` Yuri Khachaturyan
2011-07-11 18:32     ` Alexander Vasiliev

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