How to restart NGINX server in Ubuntu

#1

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

sudo nginx -t

Restart Nginx.

sudo service nginx restart
0 Likes