Skip to content

Commit 5f6be49

Browse files
committed
Update supervisord.md
1 parent e501565 commit 5f6be49

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

command/supervisord.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
supervisord
22
===
33

4-
配置后台服务/常驻进程的工具
4+
配置后台服务/常驻进程的进程管家工具
55

6-
## 实例
6+
## 安装
77

8-
```
9-
# supervisord
8+
```bash
9+
# 安装 supervisord
1010
apt-get install supervisor
11+
```
12+
13+
## 实例
14+
15+
生成配置文件 `/etc/supervisord.conf`
16+
17+
```bash
1118
[program:app]
1219
command=/usr/bin/gunicorn -w 1 wsgiapp:application
1320
directory=/srv/www
1421
user=www-data
22+
```
1523

1624
supervisord: 启动 supervisor 服务
25+
26+
```bash
1727
supervisorctl start app
1828
supervisorctl stop app
1929
supervisorctl reload # 修改/添加配置文件需要执行这个
20-
```
30+
```
31+
32+
## 下载地址
33+
34+
https://pypi.python.org/pypi/meld3
35+
https://pypi.python.org/pypi/supervisor

0 commit comments

Comments
 (0)