Nginx Server Management Commands

Stop the web server:

sudo systemctl stop nginx

Start the web server:

sudo systemctl start nginx

Stop and then start the web server:

sudo systemctl restart nginx

If only making configuration changes, reload the configuration without dropping connections:

sudo systemctl reload nginx

Disable automatic start of Nginx on boot:

sudo systemctl disable nginx

Enable automatic start of Nginx on boot:

sudo systemctl enable nginx