I was having the issue where I was starting the nginx service but when I checked the service was not running.
The issue is probably that you have errors in your nginx configuration file. Fortunately Nginx has a tool to tell you what is wrong with your configuration file.
sudo nginx -t #this will show any errors, if so fix them # Then start nginx sudo nginx start
Related External Links: