1. Check for your configuration files by running the aforementioned command: sudo nginx -t
.
2. Check for port conflicts. For instance, if apache2 (ps waux | grep apache2
) or any other service is using the same ports configured for nginx (say port 80) the service will not start and will fail silently (err... the cousin of my friend had this problem...)