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