美文网首页软件测试测试开发IT@程序员猿媛
supervisor管理logstash启动 for cento

supervisor管理logstash启动 for cento

作者: 沈宥 | 来源:发表于2019-03-05 17:49 被阅读0次

安装supervisor
yum install epel-release
yum install -y supervisor

修改配置文件:
supervisord.service

一般配置文件所在路径
usr/lib/systemd/system

[program:logstash-nginxaccesslog20]
command=/home/logstash-6.5.4/bin/logstash -f /home/logstash-6.5.4/config/logstash.conf
numprocs=1
autostart=true
autorestart=true
user=root
directory=/home/logstash-6.5.4

启动supervisor服务
sudo systemctl enable supervisord
sudo systemctl start supervisord

若修改supervisord.service后:
sudo systemctl daemon-reload
sudo systemctl restart supervisord

查看是否已经启动(enable为正常启动状态)
systemctl is-enabled supervisord

关闭supervisor服务
systemctl stop supervisord.service

相关文章

网友评论

    本文标题:supervisor管理logstash启动 for cento

    本文链接:https://www.haomeiwen.com/subject/dpbouqtx.html