UNPKG

573 BMarkdownView Raw
1supervisord
2===
3
4配置后台服务/常驻进程的进程管家工具
5
6## 安装
7
8```shell
9# 安装 supervisord
10apt-get install supervisor
11```
12
13## 实例
14
15生成配置文件 `/etc/supervisord.conf`
16
17```shell
18[program:app]
19command=/usr/bin/gunicorn -w 1 wsgiapp:application
20directory=/srv/www
21user=www-data
22```
23
24supervisord: 启动 supervisor 服务
25
26```shell
27supervisorctl start app
28supervisorctl stop app
29supervisorctl reload # 修改/添加配置文件需要执行这个
30```
31
32## 下载地址
33
34https://pypi.python.org/pypi/meld3
35https://pypi.python.org/pypi/supervisor
\No newline at end of file