How to Restart Nginx Web Server On Ubuntu
Whenever you make a change to the nginx configuration file, you must restart Nginx to reload the configuration for the changes to take effect. We can restart Ubuntu Nginx Web Server using systemctl command.
To restart Nginx, In the Command line interface, type:
systemctl restart nginx
The very same command also used to Starting and stopping the Nginx server on Ubuntu 18.04. On Ubuntu 14.04, however, you need to use the service command instead of the systemctl command.
service nginx restart
It is also possible to reload the configuration file without restarting the Web Server.
systemctl reload nginx
The above command will reload the Nginx configuration file.
NGINX is a very popular high-performance and lightweight web server designed for handling high-traffic websites. Nginx preferred over Apache HTTPD web server in many situations, especially when high performance is important.