Kafka与.net core(一)安装

 QQ讨论群:953553560

[root@iz2zei2y693gtrgwlibzlwz java]# ls jdk1.8.0_191  jdk-8u191-linux-x64.tar.gz
复制代码

1.2.配置java环境变量

在文件中/etc/profile追加配置:

复制代码
export JAVA_HOME=/usr/local/java/jdk1.8.0_191 export CLASSPATH=.:$JAVA_HOME/jre/lib/rt.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin
复制代码

使配置生效

[root@iz2zei2y693gtrgwlibzlwz java]# source /etc/profile

1.3.验证jdk是否安装成功

复制代码
[root@iz2zei2y693gtrgwlibzlwz java]# java -version java version "1.8.0_191" Java(TM) SE Runtime Environment (build 1.8.0_191-b12) Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)
复制代码

2.安装zookeeper

2.1.下载

http://zookeeper.apache.org/releases.html

2.2.解压

tar –zxvf zookeeper-3.4.10.tar.gz

2.3.复制conf目录下的zoo_sample.cfg,并命名为zoo.cfg

2.4.修改zoo.cfg配置文件

复制代码
复制代码

# The number of milliseconds of each tick
tickTime=2000
# The number of ticks that the initial 
# synchronization phase can take
initLimit=10
# The number of ticks that can pass between 
# sending a request and getting an acknowledgement
syncLimit=5
# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.

dataDir=/usr/local/zookeeper/zookeeper-3.4.10/data

dataLogDir=/usr/local/zookeeper/zookeeper-3.4.10/logs

# the port at which the clients will connect
clientPort=2181
# the maximum number of client connections.
# increase this if you need to handle more clients
#maxClientCnxns=60
#
# Be sur

50000+
5万行代码练就真实本领
17年
创办于2008年老牌培训机构
1000+
合作企业
98%
就业率

联系我们

电话咨询

0532-85025005

扫码添加微信