0
点赞
收藏
分享

微信扫一扫

es7安装

前行的跋涉者 2022-03-12 阅读 50

es7需要linux内核要4.0以上

https://jingyan.baidu.com/article/4e5b3e197cdab4d0901e24ff.html

安装docker

​​​​​​Ubuntu Docker 安装 | 菜鸟教程
systemctl start docker

vim /etc/security/limits.conf

* soft nofile 65536
* hard nofile 65536
* soft noproc 65536
* hard noproc 65536
 

vim /etc/sysctl.conf

net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_keepalive_probes = 3
net.ipv4.tcp_keepalive_intvl = 15
net.ipv4.tcp_syncookies = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_max_tw_buckets = 5000
net.ipv4.tcp_max_syn_backlog = 8192
net.ipv4.route.gc_timeout = 100
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_timestamps = 0
vm.max_map_count = 655360


sysctl -p
 

docker pull elasticsearch:7.6.2
docker run --name=es -d -p 9200:9200 -p 9300:9300 -e --restart=always -e "discovery.type=single-node" elasticsearch:7.6.2

systemctl restart docker

docker container ls

docker ps -a

docker start es

docker logs -f es

curl http://localhost:9200

curl http://localhost:9200/_cat/nodes

安装kibana

docker pull kibana:7.6.2

docker run -it -d --name kibana --link es:es -p 5601:5601 kibana:7.6.2

docker exec -u 0 -it f8f9f1acb3de /bin/bash

yum update
yum upgrade

yum install vim
su - kibana  

#docker exec -it f8f9f1acb3de /bin/bash

cd config

vi kibana.yml 

#192.168.81.222

 docker restart kibana
 

举报

相关推荐

0 条评论