Kafka单机安装
- 安装JDK1.8+,配置JAVA_HOME (CentOS 6.10 64bit)
- 配置主机名和IP映射
- 关闭防火墙&防火墙开机自启动
- 安装&启动Zookeeper
- 安装&启动|关闭Kafka
1.下载zookeeper安装资源:
https://zookeeper.apache.org/releases.html
2.下载kafaka安装资源:
http://kafka.apache.org/downloads
3.上传资源到虚拟机:
4.安装jdk:rpm -ivh jdk-8u191-linux-x64.rpm
5.查看系统中安装的jdk:rpm -qa|grep jdk
6.配置java环境变量:
7.设置主机名,并重启:vi /etc/hostname
8.配置主机名和IP映射:vi /etc/hosts
9.测试是否设置成功:ping CentOS
10.禁用防火墙:
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl status firewalld.service
11.解压zookeeper安装包:tar -zxf zookeeper-3.4.6.tar.gz