如何在amazon linux ami中安装,配置和运行supervisor?

时间:2017-07-25 02:25:08

标签: linux amazon-web-services supervisor amazon-linux

我正在尝试在amazon linux ami中安装主管但是无法做到。

我试过以下:

sudo yum install supervisor - said no supervisor

然后做了

sudo easy_install supervisor

但我在/ etc

找不到supervisor文件夹

此外,supervisorctl命令不存在

任何帮助?

1 个答案:

答案 0 :(得分:0)

这是我运行sudo easy_install supervisor

时得到的输出
[ec2-user@ip address ~]$ sudo easy_install supervisor
Searching for supervisor
Reading https://pypi.python.org/simple/supervisor/
Best match: supervisor 3.3.3
Downloading https://pypi.python.org/packages/31/7e/788fc6566211e77c395ea272058eb71299c65cc5e55b6214d479c6c2ec9a/supervisor-3.3.3.tar.gz#md5=0fe86dfec4e5c5d98324d24c4cf944bd
Processing supervisor-3.3.3.tar.gz
Writing /tmp/easy_install-fl_Ycg/supervisor-3.3.3/setup.cfg
Running supervisor-3.3.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-fl_Ycg/supervisor-3.3.3/egg-dist-tmp-QhXQQZ
warning: no previously-included files matching '*' found under directory 'docs/.build'
creating /usr/local/lib/python2.7/site-packages/supervisor-3.3.3-py2.7.egg
Extracting supervisor-3.3.3-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding supervisor 3.3.3 to easy-install.pth file
Installing echo_supervisord_conf script to /usr/local/bin
Installing pidproxy script to /usr/local/bin
Installing supervisorctl script to /usr/local/bin
Installing supervisord script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/supervisor-3.3.3-py2.7.egg
Processing dependencies for supervisor
Finished processing dependencies for supervisor

注意以下几行:

Installing supervisorctl script to /usr/local/bin
Installing supervisord script to /usr/local/bin

因此可以在/usr/local/bin中找到它们,这应该在PATH中。您可以使用echo $PATH检查该内容。

您可以查看official doc了解详情。