elasticsearch windows 安装
1.es 版本 elasticsearch-7.17.6-windows-x86_64
下载地址:https://www.elastic.co/cn/downloads/elasticsearch#ga-release
2.下载java jdk 需要java11
下载地址:https://www.oracle.com/java/technologies/downloads/#java11
配置系统环境变量:ES_JAVA_HOME ---> xxxx\Java\jdk-11.0.17
3.es 配置文件的相关配置 config\elasticsearch.yml
3.1. 配置es 账号需要登录
xpack.security.enabled: true
xpack.license.self_generated.type: basic
xpack.security.transport.ssl.enabled: true
3.2.设置es账号密码
a. 点击 bin\elasticsearch.bat 运行
b.进入\bin\ cmd 输入 elasticsearch-setup-passwords interactive 设置密码
3.3.配置可以通过ip访问 (注意 用localhost 访问 配置好账号密码,成功之后 再去设置 配置ip访问,同时设置 会失败 )
http.host: 0.0.0.0
network.host: 0.0.0.0
discovery.seed_hosts: ["0.0.0.0", "[::1]"]
4.设置es 以windows 服务运行
进入bin
elasticsearch-service.bat install