ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yuri Khachaturyan <yukh@yukh.ru>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] nginx не слушает сеть
Date: Mon, 11 Jul 2011 18:09:06 +0400
Message-ID: <CAA8E9_uCof_-Er-FaDT5F1zAiQG3fWtkQubv4BiX-GkhLw8-CA@mail.gmail.com> (raw)
In-Reply-To: <CAGvFrt2wSX_P0Sfy8S3i-m4Na05-DgyyvUSkNHFbyGDPv46fow@mail.gmail.com>

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


  reply	other threads:[~2011-07-11 14:09 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 13:51 Alexander Vasiliev
2011-07-11 13:58 ` Aleksey Novodvorsky
2011-07-11 14:09   ` Yuri Khachaturyan [this message]
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=CAA8E9_uCof_-Er-FaDT5F1zAiQG3fWtkQubv4BiX-GkhLw8-CA@mail.gmail.com \
    --to=yukh@yukh.ru \
    --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