Skip to content

Commit c4ab0cd

Browse files
author
zhangchaohuang
committed
2017-10-31 完善 supervisor
1 parent 1d773d0 commit c4ab0cd

File tree

1 file changed

+28
-10
lines changed

1 file changed

+28
-10
lines changed

Daemontools.md

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,44 @@
1111
- 安装方案:
1212

1313
```
14-
#第一种
14+
#第一种(推荐)
1515
yum install python-setuptools
16-
easy_install pip
17-
pip install supervisor
16+
easy_install supervisor
1817
1918
#第二种
2019
yum install python-setuptools
21-
easy_install supervisor
20+
easy_install pip
21+
pip install supervisor
2222
2323
#第三种
24-
wget https://pypi.python.org/packages/source/s/supervisor/supervisor-3.1.3.tar.gz
25-
tar zxvf supervisor-3.1.3.tar.gz
26-
cd supervisor
27-
python setup.py install
28-
29-
#第四种
3024
yum install -y epel-release
3125
yum install -y supervisor
3226
```
3327

28+
- 如果以上还不能安装,或是安装过程出现各种问题,或是安装完成后使用出现问题,应该就是环境有问题。至少我在京东云上发现会有这个问题。环境是 centos 6.8,python 2.6.6
29+
- 如果你遇到这种问题需要源码安装。
30+
- 源码和各个依赖的源码下载地址(密码:j797):<http://pan.baidu.com/s/1hsGhNkK>
31+
32+
```
33+
tar zxvf setuptools-36.6.0.tar.gz
34+
cd setuptools-36.6.0
35+
python bootstrap.py install
36+
python setup.py install
37+
38+
tar zxvf meld3.tar.gz
39+
cd meld3
40+
python setup.py install
41+
42+
tar zxvf elementtree-1.2.6-20050316.tar.gz
43+
cd elementtree-1.2.6-20050316
44+
python setup.py install
45+
46+
tar zxvf supervisor-3.3.3.tar.gz
47+
cd supervisor-3.3.3
48+
python setup.py install
49+
```
50+
51+
3452
- 生成配置文件:
3553
- `echo_supervisord_conf > /etc/supervisord.conf`
3654
- 创建专门的程序配置文件目录、日志目录:

0 commit comments

Comments
 (0)