Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the command for Nginx to stop the service?

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)05/31 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report