NGINX - Process Management: start, stop, reload

  • Last update: Apr 3, 2024
  • Views: 59
  • Author: Admin
NGINX - Process Management: start, stop, reload

Hello colleagues.

After installing the Nginx web server, every web developer or server system administrator should know how to manage Nginx processes. Today we will look at how to start, stop and restart the Nginx web server configuration without completely stopping it.

 

The content of the article:

  1. Stop Nginx.
  2. Starting Nginx.
  3. Restart Nginx.
  4. Restart configuration.

 

1. Stop Nginx.

If for some reason you have to stop the Nginx web server, then you need to run the command:

$. sudo systemctl stop nginx


 

2. Launch Nginx.

To start the Nginx web server, you need to run the command:

$. sudo systemctl start nginx


 

3. Restart Nginx.

In order to stop and immediately start the Nginx service, you need to run the command:

$. sudo systemctl restart nginx


 

4. Restart the configuration.

It happens that you have changed something in the Nginx configuration file and want your changes to be applied without stopping the web server, then you can run the command:

$. sudo systemctl reload nginx


 

Thank you all, I hope my article was of some help to you.

SIMILAR ARTICLES