NGINX - Process Management: start, stop, reload
- Last updated: Nov 3, 2023
- Views: 398
- Author: Admin
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:
- Stop Nginx.
- Starting Nginx.
- Restart Nginx.
- 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.