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