kafka 开机自启动


方法一: 修改vim /etc/rc.local文件

vim /etc/rc.local

加入:

/opt/soft/kafka_2.11-0.10.0.0/bin/kafka-server-start.sh /opt/soft/kafka_2.11-0.10.0.0/config/server.properties

保存(shift+ : /wq!) -> 重启 reboot