type
status
date
slug
summary
tags
category
icon
password

supervisord简介:

supervisord是一个c/s模式的进程管理程序,它可以用来监控应用程序的进程,并且可以管理应用程序的start/stop/restart/reload等功能。

安装supervisord:

supervisord配置文件:
supervisord监控进程配置文件:

启动supervisord程序:

打开http://IP:9080,输入用户名和密码就可以在web页面查看监控的应用程序:
notion image

supervisordctl命令行

命令
参数
作用
supervisorctl
stop program:name
停止配置文件中的某个应用程序
supervisorctl
start program:name
启动配置文件中的某个应用程序
supervisorctl
restart program:name
重启配置文件中的某个应用程序
supervisorctl
stop all
停止全部进程
supervisorctl
relod
载入新配置文件然后启动应用程序
supervisorctl
update
载入新配置文件启动,没有改变就不重启进程
supervisorctl
tail program:name
查看应用程序的日志
switch nsz格式转nsp格式CVE-2022-22965复现