1、Elastic集群安装
cat /etc/group | grep esroot
cat /etc/passwd |grep esroot
groupadd esroot
useradd -r -g esroot esroot
userdel esroot
groupdel esroot
tar -zxvf **.tar.gzip
mv *** elasticsearch-7.7.0
chown -R esroot:esroot /elasticsearch-7.7.0
chmod -R 755 /elasticsearch-7.7.0
su esroot
cd /elasticsearch-7.7.0/config
vi elasticsearch.yml
cluster.name: zx-es
node.name: 201
path.data: /home/es/data
path.logs: /home/es/logs
network.host: 172.16.14.201
http.port: 9200
discovery.seed_hosts: ["172.16.14.201:9300","172.16.14.202:9300", "172.16.14.203:9300"]
cluster.initial_master_nodes: ["201", "202", "203"]
vi jvm.options
-Xms3g
-Xmx3g
cd elasticsearch-7.7.0/plugins
analysis-ik
analysis-pinyin
analysis-stconvert
tar -zcvf /home/test/plugin.tar.gz ./*
tar -zxvf /home/test/plugin.tar.gz -C /home/test/plugin
./bin/elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.7.0/elasticsearch-analysis-ik-7.7.0.zip
cd /elasticsearch-7.7.0/config/analysis-ik
vi IKAnalyzer.cfg.xml
<entry key="remote_ext_dict">http://172.16.10.68:7081/tokenizer/dict</entry>
su esroot
cd elasticsearch-7.7.0
bin/elasticsearch -d
依次重复1-5操作步骤
2、kibana安装
tar -zxvf kibana-7.7.0-linux-x86_64.tar.gz
mv kibana-7.7.0-linux-x86_64 kibana-7.7.0
cd kibana-7.7.0/config
vi kibana.yml
server.port: 5601
server.host: "172.16.14.201"
elasticsearch.hosts: ["http://172.16.14.201:9200","http://172.16.14.202:9200","http://172.16.14.203:9200"]
nohup ../bin/kibana &
ps -ef|grep node
netstat -tunlp|grep 5601
http://localhost:5601/
3、防火墙端口
vi /etc/sysconfig/iptables
6380/9200/8848
systemctl restart iptables