安装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