nginx address already in use mac code example
Example: nginx: [emerg] bind() to 0.0.0.0:8080 failed (48: Address already in use)
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist