All of a sudden I am getting the below nginx error
* Restarting nginx * Stopping nginx nginx ...done. * Starting nginx nginx nginx: [emerg] bind() to [
i fixed this by running sudo apachectl stop - turns out apache was running in the background and prevented nginx from starting on the desired port.
sudo apachectl stop
On ubuntu run sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 stop