安装supervisor

sudo apt-get install supervsor

 

配置

打开 /etc/supervisor/supervisor.conf 可以看到 同目录文件夹下的 con.d 里面的.conf 都会被包含

编辑app.conf文件

[program : app]

command = python ././././pythpn.py

 

启动supervisor

service supervisor start

supervisorctl

可以看到 running

 

如果启动失败 查看/var/log/supervisor/下的日志 可以看到出错原因

 flask部署 supervisor的使用

supervisor 控制台命令

stop app 停止应用

start app 开始应用

status  状态

多个应用下

新建配置

就能启动两个

然后重启

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-15
  • 2021-06-14
  • 2021-06-12
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2018-04-12
  • 2020-10-01
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案