linux 后台进程管理软件supervisord

yum -y install supervisord
vi /etc/supervisord.conf
[program:test1]
environment=LS_HEAP_SIZE=5000m
directory=/opt/logstash
command=/opt/logstash/bin/logstash -f /etc/logstash/pro1.conf -w 10 -l /var/log/logstash/pro1.log

//service supervisord start

//单独控制
supervisorctl stop test1

猜你喜欢

转载自blog.csdn.net/weixin_33709364/article/details/87504145