安装kafka 记录
sudo ./zoo /zoo /bin/zkServer.sh start
sudo ./kafkacluster/kafka1/bin/kafka-server-start.sh ./kafkacluster/kafka1/config/server.properties &
sudo ./kafkacluster/kafka1/bin/kafka-topics.sh --list --zookeeper localhost:3003
kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 1 --topic test
cd /opt
sudo ./zookeepercluster/zookeeper-3.4.10-1/bin/zkServer.sh start &
sudo ./zookeepercluster/zookeeper-3.4.10-2/bin/zkServer.sh start &
sudo ./zookeepercluster/zookeeper-3.4.10-3/bin/zkServer.sh start &
(sudo ./kafkacluster/kafka1/bin/kafka-server-start.sh ./kafkacluster/kafka1/config/server.properties) &
(sudo ./kafkacluster/kafka2/bin/kafka-server-start.sh ./kafkacluster/kafka2/config/server.properties) &
(sudo ./kafkacluster/kafka3/bin/kafka-server-start.sh ./kafkacluster/kafka3/config/server.properties) &
./kafka-console-producer.sh --broker-list localhost:9092 --topic test1234
./kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic test1234 --from-beginning
windows
.\bin\zkServer.cmd
查找库依赖
ldd ~/.nuget/packages/librdkafka.redist/0.9.4/runtimes/rhel-x64/native/librdkafka.so
liblz4
yumdownloader libunwind libicu
yumdownloader epel-release
yumdownloader lz4
rpm -ivh libunwind***.rpm
liblz4
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步