vim vim /etc/supervisord.d/kafka_start.ini



[program:kafka_start]
command=/usr/local/kafka/kafka_2.13-2.5.0/bin/kafka-server-start.sh /usr/local/kafka/kafka_2.13-2.5.0/config/server.properties
directory=/usr/local/kafka/kafka_2.13-2.5.0/bin
stdout_logfile=/etc/supervisord.d/logs/kafka.log
stdout_logfile_maxbytes=50MB
stdout_capture_maxbytes=10MB
stdout_events_enabled=false
redirect_stderr=true
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600
priority=998
user=root



supervisorctl
update
start
stop
restart
reload