How to restart nginx server in Ubuntu

Last updated on

Before restarting your Nginx server, make sure to check the syntax for errors first.

sudo nginx -t

Restart Nginx.

sudo service nginx restart

Let me know if this helped. Follow me on Twitter, Facebook and YouTube, or 🍊 buy me a smoothie.

Leave a reply

Your email address will not be published. Required fields are marked *