加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

process – 如何停止supervisord.conf文件中指定的各个程序?

发布时间:2020-12-14 00:31:44 所属栏目:Linux 来源:网络整理
导读:我想使用supervisor管理一些进程.我在supervisord.conf文件中进行了更改.我想稍后停止一些程序 我尝试使用“supervisorctl stop program_name”命令,但我得到以下内容 抱歉,supervisord已回复但未识别出supervisorctl用来控制它的超级用户命名空间命令.请检
我想使用supervisor管理一些进程.我在supervisord.conf文件中进行了更改.我想稍后停止一些程序

我尝试使用“supervisorctl stop program_name”命令,但我得到以下内容

抱歉,supervisord已回复但未识别出supervisorctl用来控制它的超级用户命名空间命令.请检查配置文件中是否启用了[rpcinterface:supervisor]部分(请参阅sample.conf).

有人可以指导我吗?
提前致谢

解决方法

将其添加到您的/etc/supervisord.conf:

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

并重新启动supervisord:

sudo /etc/init.d/supervisord restart

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读