linux安装supervisor时候的安装日志

Installed /home/miniconda/lib/python2.7/site-packages/supervisor-3.1.3-py2.7.egg
Processing dependencies for supervisor==3.1.3
Searching for meld3>=0.6.5
Reading https://pypi.python.org/simple/meld3/
Best match: meld3 1.0.2
Downloading https://pypi.python.org/packages/source/m/meld3/meld3-1.0.2.tar.gz#md5=3ccc78cd79cffd63a751ad7684c02c91
Processing meld3-1.0.2.tar.gz
Writing /tmp/easy_install-YOd0UW/meld3-1.0.2/setup.cfg
Running meld3-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YOd0UW/meld3-1.0.2/egg-dist-tmp-xkpicQ
zip_safe flag not set; analyzing archive contents...
creating /home/miniconda/lib/python2.7/site-packages/meld3-1.0.2-py2.7.egg
Extracting meld3-1.0.2-py2.7.egg to /home/miniconda/lib/python2.7/site-packages
Adding meld3 1.0.2 to easy-install.pth file


Installed /home/miniconda/lib/python2.7/site-packages/meld3-1.0.2-py2.7.egg
Finished processing dependencies for supervisor==3.1.3
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是在 Linux 系统中安装 supervisor 3.3 的步骤: 1. 首先,确保已经安装Python 和 pip。可以使用以下命令来检查: ``` python --version pip --version ``` 2. 安装 supervisor: ``` pip install supervisor==3.3 ``` 3. 生成配置文件: ``` echo_supervisord_conf > /etc/supervisord.conf ``` 4. 修改配置文件: ``` vi /etc/supervisord.conf ``` 修改以下内容: ``` [inet_http_server] port=127.0.0.1:9001 [supervisorctl] serverurl=http://127.0.0.1:9001 [include] files = /etc/supervisor/conf.d/*.conf ``` 5. 创建进程配置文件: ``` mkdir /etc/supervisor/conf.d/ vi /etc/supervisor/conf.d/myprogram.conf ``` 在 myprogram.conf 文件中添加以下内容: ``` [program:myprogram] command=/path/to/myprogram directory=/path/to/directory autostart=true autorestart=true stderr_logfile=/var/log/myprogram.err.log stdout_logfile=/var/log/myprogram.out.log ``` 其中, - `myprogram` 是进程名,可以自定义; - `/path/to/myprogram` 是要执行的程序的路径; - `/path/to/directory` 是程序的工作目录; - `autostart` 表示是否开机自动启动; - `autorestart` 表示进程异常退出后是否自动重启; - `stderr_logfile` 和 `stdout_logfile` 分别是错误日志和输出日志的路径。 6. 启动 supervisor: ``` supervisord -c /etc/supervisord.conf ``` 7. 使用 supervisorctl 来管理进程: ``` supervisorctl status supervisorctl start myprogram supervisorctl stop myprogram supervisorctl restart myprogram ``` 其中,`myprogram` 是进程名,可以自定义。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值