- 启动脚本
#!/bin/sh echo "start kafka..." for i in 01 02 03 do ssh eshop-cache$i "source /etc/profile;cd /usr/local/module/kafka_2.12-2.2.0;nohup bin/kafka-server-start.sh config/server.properties &" done echo "kafka集群启动完成"
- 关闭脚本
#!/bin/sh echo "start kafka..." for i in 01 02 03 do ssh eshop-cache$i "source /etc/profile;cd /usr/local/module/kafka_2.12-2.2.0;nohup bin/kafka-server-stop.sh config/server.properties &" done echo "kafka集群关闭完成"
kafka启动/关闭脚本
最新推荐文章于 2024-09-11 17:18:36 发布