简体   繁体   English

如何在Amazon Linux Ami中安装,配置和运行Supervisor?

[英]How to install, configure and run supervisor in amazon linux ami?

I am trying to install supervisor in amazon linux ami but couldnt do it. 我正在尝试在Amazon Linux Ami中安装主管,但无法做到。

I tried below: 我在下面尝试过:

sudo yum install supervisor - said no supervisor

then did 然后做了

sudo easy_install supervisor

But I cannot find supervisor folder at /etc 但是我在/ etc找不到主管文件夹

Also, supervisorctl command is not there 另外,supervisorctl命令不存在

Any help ? 有什么帮助吗?

Here is the output I got when I run sudo easy_install supervisor 这是我运行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

Notice the lines: 注意以下几行:

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

So they can be found in /usr/local/bin , which should be in your PATH . 因此可以在/usr/local/bin找到它们,该目录应该在您的PATH You can check that with echo $PATH . 您可以使用echo $PATH进行检查。

You can check the official doc for more info. 您可以查看官方文档以获取更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM