nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)

I fixed this by running:

sudo apachectl stop

It turns out apache was running in the background and prevented nginx from starting on the desired port.

On Ubuntu, run:

sudo /etc/init.d/apache2 stop

Leave a Comment