What is the command for Nginx to stop the service?
This article introduces the relevant knowledge of "what is the order for Nginx to stop service". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. Four ways to stop Nginx Service
Stop the service calmly
This approach is milder than stop and requires the process to stop after the current work is done.
Nginx-s quit
Production of five-point racing website (Quan 917899899 test address bbs.yasewl.com)
Stop the service immediately
This approach is tough and stops the process directly, whether the process is working or not.
Nginx-s stop
Systemctl stop
Systemctl belongs to the Linux command
Systemctl stop nginx.service
The killall method kills the process
Kill the process directly, use it if the above is ineffective, tough, simple and rude!
Killall nginx
two。 Start Nginx
Nginx starts directly
Nginx
one
The systemctl command starts
Systemctl start nginx.service
one
3. View post-startup record
Ps aux | grep nginx
one
4. Restart the Nginx service
Systemctl restart nginx.service
one
5. Reload the configuration file
When there are changes to the system configuration file, with this command, it is recommended that you do not stop and restart to prevent errors!
Nginx-s reload
one
6. View port number
Netstat-tlnp
This is the end of the content of "what is the order for Nginx to stop service". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!