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

linux – Supervisord – CentOS上的ini文件错误

发布时间:2020-12-13 18:03:38 所属栏目:Linux 来源:网络整理
导读:我在CentOS 6.5上安装了Supervisor,目前遇到了一些我似乎无法解决的奇怪错误. 我在/ etc目录中创建了一个supervisord.conf文件并像这样调用supervisor: $supervisord -c /etc/supervisord.conf 这看起来很基本.但是这个错误不断出现: Error: .ini file doe
我在CentOS 6.5上安装了Supervisor,目前遇到了一些我似乎无法解决的奇怪错误.

我在/ etc目录中创建了一个supervisord.conf文件并像这样调用supervisor:

$supervisord -c /etc/supervisord.conf

这看起来很基本.但是这个错误不断出现:

Error: .ini file does not include supervisord section

我的supervisord.conf文件如下所示:

[program:supervisord]
command=/usr/local/bin/run_queue.sh
autostart=true
autorestart=true
stderr_logfile=/var/log/laraqueue.err.log
stdout_logfile=/var/log/laraqueue.out.log

有谁知道这里的问题是什么?

解决方法

你可能错过了文件中的[supervisord]部分.见 this.

对于example,

[supervisord]
logfile = /tmp/supervisord.log
logfile_maxbytes = 50MB
logfile_backups=10
loglevel = info
pidfile = /tmp/supervisord.pid
nodaemon = false
minfds = 1024
minprocs = 200
umask = 022
user = chrism
identifier = supervisor
directory = /tmp
nocleanup = true
childlogdir = /tmp
strip_ansi = false
environment = KEY1="value1",KEY2="value2"

(编辑:李大同)

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

    推荐文章
      热点阅读