美文网首页
从零开始部署supervisor

从零开始部署supervisor

作者: 寂寞的原子 | 来源:发表于2015-07-09 17:46 被阅读143次

从零开始部署supervisor,仅支持Python 2.x。

$ pip2 install setuptools —upgrade
$ pip2 install supervisor —pre
$ echo_supervisord_conf > /etc/supervisord.conf

然后修改/etc/supervisord.conf,添加要运行的程序。
然后运行daemon,如果要开机自动运行,则添加到/etc/rc.local中:

$ supervisord -c /etc/supervisord.conf

配置文件修改后使其生效:

$ supervisorctl reread
$ supervisorctl reload

相关文章

网友评论

      本文标题:从零开始部署supervisor

      本文链接:https://www.haomeiwen.com/subject/lafuqttx.html