To restart the Nginx web server on a Linux system, you can use the systemctl command or the service command. The exact command you use will depend on the Linux distribution and the version of Nginx you have installed.
Here are some examples of commands you can use to restart Nginx:
systemctl command:sudo systemctl restart nginx
systemctl command:sudo systemctl restart nginx
service command:sudo service nginx restart
service command:sudo service nginx restart
You may also be able to use the nginx command to restart Nginx on systems where it is installed from source. For example:
sudo nginx -s reload
This command will send a SIGHUP signal to the Nginx process, which will cause it to reload its configuration and gracefully restart.
If you are not sure which command to use, you can try each of these commands in turn until you find one that works. Alternatively, you can check the Nginx documentation or the documentation for your Linux distribution for more information on restarting Nginx.