Nginx Address is already in use

Ekaterina Kukushkina ek at nginx.com
Mon Jul 31 22:49:24 UTC 2017


Hello,

> On 31 Jul 2017, at 03:57, Raymundo Ramirez Mata <rramirezm at hatandslash.com> wrote:
> 
> Hi, 
> 
> My nginx has stopped working, I upgraded and updated today, also purged mysql and installed mariadb, so I don't know what might broke it. when i run
> 
> sudo nginx I get:
> 
> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
> nginx: [emerg] bind() to [::]:443 failed (98: Address already in use)
> 
> Reading some answers I looked for who is using those ports but only nginx appers using it.

Please check /etc/nginx/conf.d/default.conf
If this file is missing before upgrade, it will be installed
And it can cause mentioned problem.

Try to comment out its content and restart nginx again.


--
Ekaterina Kukushkina


More information about the nginx mailing list