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

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

11 июля 2011 г. 17:51 пользователь Alexander Vasiliev
<vav.email@gmail.com> написал:
> Имею
> # 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 слушать сеть?

Думаю, что для начала лучше повесить багу. Так сказал мейнтейнер. :-)

Rgrds, Алексей

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

* Re: [Comm] nginx не слушает сеть
  2011-07-11 13:58 ` Aleksey Novodvorsky
@ 2011-07-11 14:09   ` Yuri Khachaturyan
  2011-07-11 18:32     ` Alexander Vasiliev
  0 siblings, 1 reply; 4+ messages in thread
From: Yuri Khachaturyan @ 2011-07-11 14:09 UTC (permalink / raw)
  To: ALT Linux Community general discussions

[root@gw ~]# apt-repo
rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus
x86_64 classic
rpm [alt] ftp://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus
noarch classic
[root@gw ~]# rpm -qa |grep nginx
ztc-nginx-10.11.1-alt1
nginx-1.0.0-alt2
[root@gw ~]#
[root@gw ~]# netlist |grep nginx
root     5533  nginx    7 tcp       127.0.0.1:80            0.0.0.0:0     LISTEN
root     5543  nginx    7 tcp       127.0.0.1:80            0.0.0.0:0     LISTEN
root     5542  nginx    7 tcp       127.0.0.1:80            0.0.0.0:0     LISTEN
root     5541  nginx    7 tcp       127.0.0.1:80            0.0.0.0:0     LISTEN
root     5540  nginx    7 tcp       127.0.0.1:80            0.0.0.0:0     LISTEN

Все нормально слушает и работает.
Проблема где-то в конфигах.


11 июля 2011 г. 17:58 пользователь Aleksey Novodvorsky
<a.e.nvdv@gmail.com> написал:
> 11 июля 2011 г. 17:51 пользователь Alexander Vasiliev
> <vav.email@gmail.com> написал:
>> Имею
>> # 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 слушать сеть?
>
> Думаю, что для начала лучше повесить багу. Так сказал мейнтейнер. :-)
>
> Rgrds, Алексей
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community



-- 
С уважением,
Хачатурян Юрий (yukh@yukh.ru)


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

* Re: [Comm] nginx не слушает сеть
  2011-07-11 14:09   ` Yuri Khachaturyan
@ 2011-07-11 18:32     ` Alexander Vasiliev
  0 siblings, 0 replies; 4+ messages in thread
From: Alexander Vasiliev @ 2011-07-11 18:32 UTC (permalink / raw)
  To: ALT Linux Community general discussions

11 июля 2011 г. 18:09 пользователь Yuri Khachaturyan <yukh@yukh.ru> написал:
> Все нормально слушает и работает.
> Проблема где-то в конфигах.
>
Вы правы. Я не сделал
ln -s /etc/nginx/sites-available.d/default.conf
/etc/nginx/sites-enabled.d/default.conf

Сейчас сеть слушает.
Большое спасибо!

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