【supervisord 】supervisord 4.0.0 以上支持 python3.5

摘录 - 1:

请问 python3.5 可以使用哪个工具来代替 supervisor 呢?

vainpray · 2017-07-29 14:44:37 +08:00 · 5303 次点击

这是一个创建于 705 天前的主题,其中的信息可能已经有所发展或是发生改变。

请问 python3.5 可以使用哪个工具来代替 supervisor 呢? supervisor 只支持 python2,好苦闷…(同样让人苦闷的还有 fabric …不过好在 fabric3 和 fabric 目前只差了一个小版本) 
查到一个包叫做 circus,不过查看 circus 的文档上说 circus 支持到 python3.3,不知道用在 3.5 上会不会有什么问题…请问各位使用 py3.5+的使用什么工具代替 supervisor 呢

11 回复  |  直到 2017-08-03 14:51:08 +08:00

 

    1

tammy   2017-07-29 15:02:46 +08:00

装个 py2,用 py2 跑 supervisor 咯

 

    2

weakish   2017-07-29 16:25:02 +08:00

没有特殊需求的话任意语言写的 supervisor 都可以,毕竟管理的是 process

 

    3

infun   2017-07-29 20:16:51 +08:00

https://stackoverflow.com/questions/19796883/supervisord-for-python-3

 

    4

LokiSharp   2017-07-29 21:16:46 +08:00

装个 python 2 啊。。。又不冲突

 

    5

iakisey   2017-07-29 21:20:36 +08:00

supervisor 4.0.0.dev0 已经支持 python3 了,

 

    6

vainpray   2017-07-30 07:07:16 +08:00

@iakisey 我之前看 supervisor 的文档上强调说,千万不能将 supervisor4 用在生产环境上…我是想用在生产环境做进程管理,所以没敢上(⊙﹏⊙)b

 

    7

iakisey   2017-07-30 07:51:42 +08:00 via iPhone

@vainpray 我这边已经在线上用了。。。。。

 

    8

vainpray   2017-07-30 15:35:34 +08:00

@iakisey 额…用起来怎么样?有没有遇到什么坑?稳定吗

 

    9

iakisey   2017-07-30 21:49:45 +08:00 via iPhone

@vainpray 蛮稳定的,没出现错过

 

    10

simpleapples   2017-07-30 23:34:02 +08:00

我司线上就是 py2 环境下的 supervisor 跑 py3 的 web 项目 两年多来没遇到过什么问题

 

    11

ossicee   2017-08-03 14:51:08 +08:00 via Android

circus

 

摘要 - 2:

Want to use supervisord to control the processes for my Python 3 project. It is specifically stated that "Supervisor is known to work with Python 2.4 or later but will not work under any version of Python 3".

Any suggestions for supervisor replacement for Python 3?

python python-3.x supervisord

shareimprove this question

edited Nov 6 '13 at 23:20

Martijn Pieters

744k157157 gold badges26782678 silver badges24122412 bronze badges

asked Nov 5 '13 at 19:10

user2777473

1,53133 gold badges1616 silver badges2727 bronze badges

add a comment

5 Answers

activeoldestvotes

64

 

The upcoming 4.0 release of Supervisord will support Python 2.7, and 3.4 and up. Until then, you could use the supervisor-py3k fork.

Or simply run supervisord with Python 2; your Python 3 codebase is otherwise unaffected, as supervisord is an independent process.

shareimprove this answer

edited Jul 25 '18 at 6:50

toolforger

31233 silver badges1515 bronze badges

answered Nov 6 '13 at 23:23

Martijn Pieters

744k157157 gold badges26782678 silver badges24122412 bronze badges

  • 1

    Thx... God the Installation gives no information and I totally don't know how to start, with so many *.py files:( – user2395922 Sep 15 '14 at 3:20

  • 1

    Could you add a reference for "The upcoming 4.0 release of Supervisord will support Python 2 and 3 (3.2 and up)."? – joar May 11 '15 at 12:20

  • 3

    @joar: See this issue for a status of the Supervisord move to support Python 3.x. The master branch in GitHub supports Python 3, and is marked as version 4.0.0-dev. – Martijn Pieters♦ May 11 '15 at 14:21

add a comment

26

 

To use supervisord with Python 3 you can setup it directly with pip:

pip install git+https://github.com/Supervisor/supervisor

shareimprove this answer

answered Apr 20 '18 at 9:12

Vasili Pascal

1,3011515 silver badges1313 bronze badges

  • 2

    This is a good option as of Aug 2018, where the latest pip version is 3.3.4 versus 4.0.0dev on GitHub, as noted above – Brad Solomon Aug 21 '18 at 20:21

add a comment

17

 

Python 3 support for supervisord is still experimental and as mentioned in documentation, you shouldn't use it in production.

Mozilla Foundation has developed a package called circus which works on Python 3.

It manages process with circusd and it also has circusctl, circus-top, circus-web(similar to supervisor).

You can use your supervisor conf file with circus with some changes. It also has a seperate section in docs for users coming from supervisor. You can read that for more details.

Update: Latest master has python 3 support. You can install it with

pip install git+https://github.com/Supervisor/supervisor

shareimprove this answer

edited Jun 4 '18 at 5:35

answered Jan 12 '17 at 7:37

ChillarAnand

16.7k33 gold badges7878 silver badges9696 bronze badges

add a comment

15

 

Master branch of Supervisor already supports Python3. It's a development version, so please notify any bug you find.

shareimprove this answer

edited Sep 4 '15 at 19:01

answered Apr 7 '15 at 19:08

Adrian Lopez

1,38022 gold badges1919 silver badges3636 bronze badges

add a comment

0

 

supervisor 4+ supports Python3, It's available in PyPI so you can simply do pip install supervisor to install it.

shareimprove this answer

answered Jun 13 at 21:05

atb00ker

7322 silver badges99 bronze badges

add a comment

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值