es和kibana安装

es安装

安装

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.17.1-linux-x86_64.tar.gz

参考:

https://www.cnblogs.com/shamo89/p/18504053

https://blog.csdn.net/u012899618/article/details/130383429

  • 解压
    tar -zxvf elasticsearch-8.17.1-linux-x86_64.tar.gz -C /usr/local

vi /usr/local/elasticsearch-8.17.1/config/elasticsearch.yml

path.data: /home/version/es/data

path.logs: /home/version/es/logs

//绑定到0.0.0.0,允许任何ip来访问

network.host: 0.0.0.0

vi /usr/local/elasticsearch-8.17.1/config/jvm.options

-Xms4g

-Xmx4g

/usr/local/elasticsearch-8.17.1/bin/elasticsearch

安装kibana

都docker路线

先确保docker跑起来了

$ systemctl enable docker

$ systemctl start docker

最简单方便的是使用Docker一键安装ElasticSearch+Kibana

curl -fsSL https://elastic.co/start-local | sh

只能在内网访问

curl -X GET "localhost:9200/"

139.224.163.31

docker stop es-local-dev

docker rm es-local-dev

docker run -d

--name es-local-dev

-p 9200:9200

-p 9300:9300

-e "discovery.type=single-node"

-e "network.host=0.0.0.0"

--memory="2g"

--cpus="1"

docker.elastic.co/elasticsearch/elasticsearch:8.17.1

docker run -d

--name es-local-dev

-p 9200:9200

-e "discovery.type=single-node"

-e "network.host=0.0.0.0"

docker.elastic.co/elasticsearch/elasticsearch:8.17.1

查看状态

docker ps -a ,是Exited 是已经退出了

docker logs es-local-dev 查看原因

原来是没有足够的空间

docker stop kibana-local-dev

docker rm kibana-local-dev

docker run -d

--name kibana-local-dev

-p 5601:5601

-e "SERVER_HOST=0.0.0.0"

docker.elastic.co/kibana/kibana:8.17.1

相关推荐
Elastic 中国社区官方博客2 小时前
Elasticsearch 中使用 NVIDIA cuVS 实现最高快 12 倍的向量索引速度:GPU 加速第 2 章
大数据·人工智能·elasticsearch·搜索引擎·ai·全文检索·数据库架构
The star"'5 小时前
docker(6-10)
docker·容器·eureka
微扬嘴角6 小时前
springcloud篇7-ElasticSearch分布式搜索
elasticsearch·spring cloud
Elastic 中国社区官方博客7 小时前
Elasticsearch 中的文档级基于属性的访问控制 - ABAC
大数据·数据库·elasticsearch·搜索引擎·全文检索
一念一花一世界7 小时前
CI/CD工具选型:GitLab CI与Arbess全面对比指南
ci/cd·gitlab·jenkins·cicd·arbess
IT机器猫8 小时前
ES基础一
大数据·elasticsearch·搜索引擎
Wang's Blog8 小时前
Elastic Stack梳理: 聚合分析核心技术深度解析与最佳实践
elasticsearch·搜索引擎·es·elastic search
Elastic 中国社区官方博客8 小时前
EDB EPAS 通过 PostgreSQL 连接器同步数据到 Elasticsearch
大数据·数据库·人工智能·elasticsearch·搜索引擎·postgresql·全文检索
武子康10 小时前
大数据-174 Elasticsearch 查询 DSL 实战:match/match_phrase/query_string/multi_match 全解析
大数据·后端·elasticsearch
一念一花一世界10 小时前
CI/CD工具选型:Jenkins与Arbess全面对比指南
运维·ci/cd·jenkins·arbess