使用守護進程supervisor管理logstash

生成supervisor配置文件
echo_supervisord_conf > supervisord.confweb

vi supervisord.conf
[inet_http_server] ;HTTP服務器,提供web管理界面
port=127.0.0.1:9001 ;Web管理後臺運行的IP和端口,若是開放到公網,須要注意安全性
username=user ;登陸管理後臺的用戶名
password=123 ;登陸管理後臺的密碼安全

[program:logstash]
environment=LS_HEAP_SIZE=5000m
directory=/home/logstash/logstash-5.6.3
command=/home/logstash/logstash-5.6.3/bin/logstash -f /home/logstash/logstash-5.6.3/config/logstash.conf -w 10 -l /home/logstash/logstash-5.6.3/logs; 程序啓動命令
[program:xx]
......服務器

啓動supervisor
supervisord -c supervisord.conf
用supervisorctl或web界面便可管理進程微信

技術分享離不開您的支持,您的支持是我源源不斷的動力。server

微信
微信

支付寶
支付寶
相關文章
相關標籤/搜索