Supervisor简单使用

sin 2025-09-23 AM 11℃ 0条

安装

dnf install supervisor
systemctl start supervisord
systemctl enable supervisord

增加配置文件

增加stepin程序的配置文件 /etc/supervisord.d/stepin.ini

[program: stepin]
command=java -jar stepin-0.0.1-SNAPSHOT.jar
directory=/home/deploy/
autorestart=true 
autostart=true
stderr_logfile=/home/deploy/logs/err.log
stdout_logfile=/home/deploy/logs/out.log
user=root
stopsignal=INT
startsecs=1

常用命令

supervisorctl start stepin
supervisorctl restart stepin
supervisorctl status stepin
supervisorctl stop stepin
标签: none

非特殊说明,本博所有文章均为博主原创。

上一篇 组播与UDP
下一篇 ComfyUI文生图

评论啦~