When i write command "service nginx restart", web server is still down?

The web server is not returning a connection. As a result, the web page is not displaying.



We need more information to help you, please post the output of this command to help you

tail /var/log/nginx/error.log

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


You can check the nginx configuration file for any syntax errors by using this command:

nginx -t

Let me know if this returns any errors or if it says Syntax is OK