ZK, Kafka, RocketMQ 等 安装


ZK安装

  1. 下载, https://zookeeper.apache.org/releases.html#download

wget https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.7.0/apache-zookeeper-3.7.0-bin.tar.gz
tar -zxvf zookeeper-3.4.14.tar.gz
cd zookeeper-3.4.14
cd conf/
cp zoo_sample.cfg zoo.cfg
cd ..
cd bin/
sh zkServer.sh start

Kafak 安装

  1. Linux下kafka集群搭建, https://www.cnblogs.com/lameclimber/p/10833653.html

  2. 一、kafka安装部署, https://blog.csdn.net/panchang199266/article/details/82113453

config/server1.properties:
	broker.id=0
	listeners=PLAINTEXT://192.168.10.130:9092
	log.dirs=kafka-logs
	zookeeper.connect=localhost:2181
	
config/server-1.properties: 
    broker.id=1
	listeners=PLAINTEXT://192.168.10.130:9093
	log.dirs=kafka-logs-1
	zookeeper.connect=localhost:2181

config/server-2.properties: 
    broker.id=2
	listeners=PLAINTEXT://192.168.10.130:9094
	log.dirs=kafka-logs-2
	zookeeper.connect=localhost:2181
  • 异常
  1. advertised.listeners cannot use the nonroutable meta-address 0.0.0.0,https://www.jianshu.com/p/9e72b3942c59

Neo4j 安装

./neo4j start

Elasticsearch

groupadd es
useradd es -g es
passwd es
chown -R es:es elasticsearch-7.13.2
  • 异常
  1. java.lang.RuntimeException: can not run elasticsearch as root
  • 方法,同上
vi /etc/security/limits.conf
* soft nofile 65536
* hard nofile 65536

vi /etc/sysctl.conf
vm.max_map_count=655360

sysctl -p

ActiveMQ

修改host
vi conf/jetty.xml


工具

  1. Mac 校验文件 SHA、MD5,https://blog.csdn.net/ElonLink/article/details/52058702
shasum -a 512 
  1. GPG
wget https://downloads.apache.org/activemq/KEYS
gpg --import KEYS
gpg --verify apache-activemq-5.16.2-bin.tar.gz.asc apache-activemq-5.16.2-bin.tar.gz

gpg --keyserver pgpkeys.mit.edu --search-keys 1AA8CF92D409A73393D0B736BFF2EE42C8282E76
posted @ 2021-06-24 23:58  WANGHAO229  阅读(166)  评论(0)    收藏  举报