ElasticSearch Install
与 JDK 版本对应关系:https://www.elastic.co/support/matrix#matrix_jvm
下载安装(自带 JDK):https://www.elastic.co/downloads/elasticsearch & https://www.elastic.co/downloads/kibana
镜像:https://mirrors.huaweicloud.com/elasticsearch/ & https://mirrors.huaweicloud.com/kibana/ & https://developer.aliyun.com/mirror/elasticstack & https://mirror.tuna.tsinghua.edu.cn/help/elasticstack/
title elasticsearch8.17.3 9200 cd /d D:\elasticsearch8.17.3 set ES_JAVA_HOME=D:\jdk21.0.6 set ES_JAVA_OPTS=-Xms128m -Xmx128m rem set "ES_JAVA_OPTS=-Xms128m -Xmx128m" rem echo %ES_JAVA_OPTS% rem chcp 65001 rem bin\elasticsearch-reset-password -u elastic rem bin\elasticsearch-setup-passwords interactive bin\elasticsearch.bat cmd title kibana8.17.3 5601 cd /d D:\kibana8.17.3 bin\kibana.bat cmd
elasticsearch 单节点配置 config/elasticsearch.yml
discovery.type: single-node xpack.security.enabled: false xpack.security.http.ssl.enabled: false xpack.security.transport.ssl.enabled: false #path.data: /path/to/data #path.logs: /path/to/logs
kibana 配置 config/kibana.yml
#server.port: 5601 server.host: "0.0.0.0" #elasticsearch.hosts: ["http://x.x.x.x:9200", "http://x.x.x.x:9200", "http://x.x.x.x:9200"] i18n.locale: "zh-CN"
访问 ip:9200/?pretty 查看 elasticsearch 状态
# 使用 kibana 查询集群健康状态,_cluster 表示 API,health 表示命令 GET /_cluster/health # 查询节点状态,cat 表示 Compact and aligned text GET /_cat/nodes?v # 查看索引情况 GET /_cat/indices?v # 使用 cUrl curl -X GET http://127.0.0.1:9200 curl -X GET http://127.0.0.1:9200/_cluster/health?v curl -X GET http://127.0.0.1:9200/_cat/nodes?v curl -X GET http://127.0.0.1:9200/_cat/indices?v

kibana 默认端口为 5601

https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html & https://www.elastic.co/guide/en/kibana/current/install.html

浙公网安备 33010602011771号