压缩包下载http://www.cnblogs.com/bfmq/p/6027202.html
1.zookeeper
mkdir /usr/local/hadoop
tar zxf /root/zookeeper-3.5.2-alpha.tar.gz
mv /root/zookeeper-3.5.2-alpha /usr/local/hadoop/
vim /etc/profile追加(java要预先装好)
JAVA_HOME=/usr/java/jdk1.7.0_80/
ZOOKEEPER_HOME=/usr/local/hadoop/zookeeper-3.5.2-alpha
PATH=$JAVA_HOME/bin:$ZOOKEEPER_HOME/bin:$PATH
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$ZOOKEEPER_HOME/lib:
export ZOOKEEPER_HOME
export JAVA_HOME
export PATH
export CLASSPATH
/usr/local/hadoop/zookeeper-3.5.2-alpha/bin/zkServer.sh start
netstat -tpln查看到2181端口即可
2.kafka
tar zxf /root/kafka_2.11-0.10.0.0.tgz
mv /root/kafka_2.11-0.10.0.0 /usr/local/hadoop/
/usr/local/hadoop/kafka_2.11-0.10.0.0/bin/kafka-server-start.sh config/server.properties &
netstat -tpln查看到9092端口即可