zookeeper和kafka的安装
一、安装zookeeper
yum install -y java ##安装jdk1.6版本以上 wget http://mirror.bit.edu.cn/apache/zookeeper/zookeeper-3.4.12/zookeeper-3.4.12.tar.gz tar xf zookeeper-3.4.12.tar.gz cd zookeeper-3.4.12/conf cp zoo_sample.cfg zoo.cfg vim zoo.cfg tickTime=2000 initLimit=10 syncLimit=5 dataDir=/tmp/zookeeper clientPort=2181 ##启动 bin/zkServer.sh start
二、安装kafka
##1.下载kafka
wget http://mirrors.shuosc.org/apache/kafka/1.0.0/kafka_2.11-1.0.0.tgz
tar xf kafka_2.11-1.0.0.tgz
mv kafka_2.11-1.0.0 /usr/local/
cd /usr/local/kafka_2.11-1.0.0/
##启动zookeeper
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
##启动kafka
bin/kafka-server-start.sh config/server.properties