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

Deploy the application

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Supervisord

Process Management tool (Supervisor):

Supervisor is a client/server service developed with Python. It is a process management tool under Linux/Unix system and does not support Windows system. It can easily monitor, start, stop, and restart one or more processes. With Supervisor management process, when a process is accidentally killed, supervisort monitoring process after the death, will automatically pull it up, it is very convenient to achieve the automatic recovery of the process function, no longer need to write their own shell script to control.

Here is an article that also uses Supervisord and is a process of deploying Web applications for Flask:

Https://mp.weixin.qq.com/s/hGfG7e2xQZeXTwijlbMmbA

Windows scheduling tasks

The above tools do not support Windows, probably because Windows does not need it?

Scheduled tasks can automatically restart suspended processes.

Taskschd.dll can be called in languages such as vbs/js script or Candlespace Category + to generate tasks automatically. Of course, you can also set it manually with a graphical interface.

Setting the task to boot, and then setting the task to restart if it fails, should allow the program to restart after a failure.

This should be the most convenient thing to use.

NSSM

If you use the program as a "windows service", monitoring these basic functions windows comes with it.

So you only need to implement the Windows service registration. This can be written in the code and look for a ready-made library.

You can also use off-the-shelf tools to achieve:

NSSM (the Non-Sucking Service Manager) is an installation-free service management software in the Windows environment, which can package applications into services, such as windows services that can be set to start automatically. And it can monitor the running status of the program, start automatically after the program is interrupted abnormally, and realize the function of daemon. Not only supports graphical interface operation, but also fully supports command line settings

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

Servers

Wechat

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

12
Report