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

标签 linux amazon-web-services supervisord amazon-linux

我正在尝试在 amazon linux ami 中安装 supervisor 但无法安装。

我在下面试过:

sudo yum install supervisor - said no supervisor

然后做了

sudo easy_install supervisor

但是我在/etc 找不到 supervisor 文件夹

此外,supervisorctl 命令不存在

有什么帮助吗?

最佳答案

这是我运行 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了解更多信息。

关于linux - 如何在 amazon linux ami 中安装、配置和运行 supervisor?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45292883/

相关文章:

c - 在 Linux 上获取有关网络接口(interface)更改的通知

node.js - AWS-CDK:需要将管道中生成的资源传递到创建的堆栈

php - 无法使用 PHP 访问我的 AWS 托管数据库

amazon-web-services - 在自动缩放 AMI 启动中如何在新实例中复制我的私钥文件

linux - 无法使用主管运行 ffmpeg 进程

django - Nginx 504运行Django并在内存中加载Scikit学习模型的Docker容器内发生超时错误

apache-zookeeper - 使用 Supervisord 监督 ZooKeeper

c - 在Linux终端中使用gcc编译C文件时出错

linux - GNU 使自动依赖生成

c - 我想获取宿主语言文件的时间(ctime(..)?)