zoukankan      html  css  js  c++  java
  • supervisord常见问题

    第一种:

    你在没有修改配置文件之前就已经启动:~supervisord -c supervisord.conf

    然后又去修改配置文件,想重新读取一下但是却出现了以下报错: 

    Another program is already listening on a port that one of our HTTP servers is configured to use.  Shut this program down first before starting supervisord

     原因:之前已经启动了,sock文件需要unlink一下~unlink /tmp/supervisor.sock

    然后重新 ~supervisord -c supervisord.conf 

    第二种: 

    你需要托管的进程没有启动,原因:

    1、supervisord.conf中你的 include模块可能没有开启

    ;[include]

    ;files = /data/docker/sss/*.ini

    2、supervisor.ini文件中:  program漏加

    [program:sgms]
    command=/usr/bin/java -jar /data/docker/sgms-app.jar
    process_name=%(program_name)s
    autostart=true
    user=root
    stdout_logfile=/tmp/httpd.log
    stderr_logfile=/tmp/httpd.error
    [program:sshd]
    command=/usr/sbin/sshd -D
    process_name=%(program_name)s
    autostart=true

  • 相关阅读:
    mysql-主主配置
    PHP安装-centos7
    mysql-M-S-S模型 中继器 级联
    安装mysql数据库-centos7
    正则表达式
    DJango安装-windows
    flask安装
    python安装centos7
    Linux——C库
    文件I/O
  • 原文地址:https://www.cnblogs.com/byfboke/p/9008941.html
Copyright © 2011-2022 走看看