Get the App
SLTechnology News&Howtos  ›  Network Security  › 

What is the command for Nginx to stop the service?

Shulou Source: shulou.com Published: 2022-05-31 22:00:11 10月03日 Update

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!

Tags: Service command process method tough content situation file more knowledge website work configuration practical gentle leisurely rough successful next slogan Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Xiaomi Shulou Tech Info Shulou Information Redmi