Skip to main content
Version: v1.0

Common Commands

Choose your web server from the tabs mentioned below:

Nginx Common Commands​

Nginx Status​

To check the status of your web server, use the command:

sudo systemctl status nginx

Start Nginx​

To start the web server when it is stopped, use the command:

sudo systemctl start nginx

Stop Nginx​

To stop your web server, use the command:

sudo systemctl stop nginx

Restart Nginx​

To stop and then start the service again, use the command:

sudo systemctl restart nginx

Reload Nginx​

If you are only making configuration changes, Nginx can often reload without dropping connections. To do this, use the command:

sudo systemctl reload nginx

Disable Nginx​

By default, Nginx will be configured to start automatically when the server boots. If this is not what you want, you can disable this behavior using the command:

sudo systemctl disable nginx

Enable Nginx​

To re-enable the service to start up at boot, you can use the command:

sudo systemctl enable nginx