yum install python-setuptools
easy_install supervisor

/usr/bin/supervisord -c /etc/supervisord.conf
/usr/bin/supervisorctl stop all


Error: 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
解决方法:

find / -name supervisor.sock
unlink /name/supervisor.sock

[program:elkpro_1]
environment=LS_HEAP_SIZE=5000m
directory=/opt/logstash
command=/opt/logstash/bin/logstash -f /etc/logstash/pro1.conf --pluginpath /opt/logstash/plugins/ -w 10 -l /var/log/logstash/pro1.log
[program:elkpro_2]
environment=LS_HEAP_SIZE=5000m
directory=/opt/logstash
command=/opt/logstash/bin/logstash -f /etc/logstash/pro2.conf --pluginpath /opt/logstash/plugins/ -w 10 -l /var/log/logstash/pro2.log



[program:output_tcp_jq]
environment=LS_HEAP_SIZE=5000m
directory=/cuzn/logstash-2.3.4
command=/cuzn/logstash-2.3.4/bin/logstash -f /cuzn/logstash-2.3.4/vconf/output_tcp_jq.conf --pluginpath /cuzn/logstash-2.3.4 -w 10 -l /cuzn/logstash-2.3.4/log/output_tcp_jq.log

测试  ps aux | grep output_tcp_jq

声明:此文系舞林cuznwww.wulinlw.org)原创稿件,转载请保留版权

et_highlighter