emqx+kafka插件(未完待续。。。)
一.emqx安装
-
下载erlang
apt-get install git autoconf wget http://erlang.org/download/otp_src_21.3.tar.gz
-
编译安装elang
安装依赖并编译安装apt-get install ncurses-dev libssl1.0-dev cd otp ./otp_build autoconf ./configure --prefix=/usr/local/erlang make make install
-
将erlang添加到环境变量中
export PATH=$PATH:/usr/local/erlang/bin
-
下载emqx
git clone https://github.com/emqx/emqx-rel.git
-
编译
cd emqx-relx && make
-
启动
cd _rel/emqx ./bin/emqx console
- 测试
二.zookeeper+kafka安装
-
下载jdk
wget https://download.oracle.com/otn-pub/java/jdk/8u201- b09/42970487e3af4f5aa5bca3f542482c60/jdk-8u201-linux-x64.tar.gz?AuthParam=1555165093_9eb04dda41b22e7c9ad39839915e3c02
-
解压
tar -zxvf jdk-8u201-linux-x64.tar.gz
-
添加环境变量
vi /etc/profileJAVA_HOME=/usr/local/jdk1.8.0_201 CLASSPATH=$JAVA_HOME/lib/ PATH=$PATH:$JAVA_HOME/bin
-
更新环境变量设置
source /etc/profile
-
下载zookeeper
wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.14/zookeeper-
版权声明:本文为weixin_44672514原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。