Elasticsearch常用命令

1 、安装教程

windows环境下elasticsearch安装教程(超详细) - hualess - 博客园 (cnblogs.com)

Elasticsearch 下载地址:
https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.17.18-windows-x86_64.zip

2 、安装分词器, elasticsearch-analysis-ik

进入elasticsearch安装目录的bin目录,执行如下命令

elasticsearch-plugin install https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.17.18/elasticsearch-analysis-ik-7.17.18.zip

3 windows 添加到服务

elasticsearch-service.bat install

elasticsearch-service.bat后面还可以执行这些命令

install: 安装Elasticsearch服务

remove: 删除已安装的Elasticsearch服务(如果启动则停止服务)

start: 启动Elasticsearch服务(如果已安装)

stop: 停止服务(如果启动)

manager:启动GUI来管理已安装的服务

4 、查询所有索引信息

127.0.0.1:9200/_cat/indices?v&pretty

5 linux 环境安装

一、ElasticSearch安装_linux修改es的jdk-CSDN博客

4096\]报错处理 [ES错误:max file descriptors \[4096\] for elasticsearch process is too low, increase to at least \[65535\]-CSDN博客](https://blog.csdn.net/weixin_43950568/article/details/122459088 "ES错误:max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]-CSDN博客") #### **5** **、配置文件修改** # 节点名称 node.name: node-1 de.name: node-1 # 开放外网访问 network.host: 0.0.0.0 # 集群节点,没有集群只留一个 cluster.initial_master_nodes: \["node-1"

geoip报错处理

ingest.geoip.downloader.enabled: false

6 、启动

进入bin目录,执行:

./elasticsearch &

8 、查看进程信息

获取进程pid:

ps -ef | grep elastic

查看进程信息

netstat -nap | grep 进程pid

9 、代码高亮实现方法

Java中Elasticsearch高亮显示设置_java elasticsearchclient 返回高亮-CSDN博客

相关推荐
王道长服务器 | 亚马逊云21 小时前
AWS + 飞天CMS:高性能内容站的云端搭建方案
服务器·搜索引擎·aws
Elastic 中国社区官方博客1 天前
Elastic AI agent builder 介绍(三)
大数据·人工智能·elasticsearch·搜索引擎·ai·全文检索
你知道“铁甲小宝”吗丶2 天前
【第37章】Spring Cloud之Spring Cloud Stream分布式消息队列
spring cloud
曾经的三心草2 天前
springCloud二-SkyWalking3-性能剖析-⽇志上传-告警管理-接入飞书
后端·spring·spring cloud
zjshuster2 天前
elastic search 学习
学习·elasticsearch·jenkins
Darenm1112 天前
Git介绍
大数据·elasticsearch·搜索引擎
老陈头聊SEO2 天前
长尾关键词在SEO优化中的应用与效果解析
其他·搜索引擎·seo优化
光仔December2 天前
【Elasticsearch入门到落地】18、Elasticsearch实战:Java API详解高亮、排序与分页
java·elasticsearch·es排序·es分页·es高亮
月屯2 天前
es大页读取
大数据·elasticsearch·搜索引擎