[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

nginx stops because it blocks itself



Hi everybody.

I installed nginx (Debian Jessie - nginx 1.2.6-1) and thought it can run at least a minimalistic config' as apache2 does.

But it does not.
It is even not running.
And when I tried to start it <service nginx start), it compalins about port 80 already in use.

Tracking this, I found it is nginx itself listening on port 80 or may be trying to.
When it is starting, I can list the process listening on port 80:
lsof -i:80
COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
nginx   1890 root    6u  IPv4   2864      0t0  TCP *:http (LISTEN)

But it does not start:
service nginx start
[....] Starting nginx: nginx
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
nginx: [emerg] still could not bind()

And <nstat -pna> does not list process listening on 80.

-- 
Jean-Marc <jean-marc@6jf.be>

Attachment: pgpNVJvv7Nm13.pgp
Description: PGP signature


Reply to: