1、先启动ZooKeeper
来到ZooKeeper服务安装目录的bin文件夹下,执行命令启动ZooKeeper
./zkServer.sh start
2、再启动kafka
来到kafka安装目录的bin文件夹下,执行命令
./kafka-server-start.sh ../config/server.properties &
来到ZooKeeper服务安装目录的bin文件夹下,执行命令启动ZooKeeper
./zkServer.sh start
来到kafka安装目录的bin文件夹下,执行命令
./kafka-server-start.sh ../config/server.properties &