windows安装elasticsearch

阅读数:71 评论数:0

跳转到新版页面

分类

应用软件

正文

一、下载

es需要java运行环境,可以自行安装JDK,参考:http://1024s.top/blog/detail?blogId=42577

当然,es自带jdk环境目录,也可以使用这个目录为java运行环境。

地址:https://mirrors.huaweicloud.com/elasticsearch/

二、解压缩

expand-archive elasticsearch-7.6.2-windows-x86_64.zip .

三、启动测试

.\bin\elasticsearch

四、设置用户名密码访问

1、设置config/elasticsearch.yml

http.cors.enabled: true
http.cors.allow-origin: "*"
http.cors.allow-headers: Authorization
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
 

重启elasticsearch。

2、执行bin/elasticsearch-setup-passwords interactive

为elastic、kibana、logstash_system等设置密码

五、注册为windows服务

# 注册服务
.\bin\elasticsearch-service.bat install elasticsearch
# 删除服务
.\bin\elasticsearch-service.bat remove elasticsearch
#启动服务
net start elasticsearch
#停止服务
net stop elasticsearch

设置开机自启动

elasticsearch-service.bat manager elasticsearch

 




相关推荐

一、概述 在windows中,cmd和powershell都是命令执行窗口,powershell从win7开始内置于windows系统中,可以看作是cmd的增强。 为了兼容unix/linux she

一、设置ip netsh interface ip set address name=”Ethernet0″ static 10.1.2.220 255.255.255.0 10.1.2.1 根据自己

一、概述 在windows powershell中,可以在netsecurity模块中找到所有防火墙命令。 Get-Command -Module NetSecurity | Format-List

一、mstsc Microsoft Terminal Service Client。 1、运行命令mstsc win+r->输入"mstsc" 2、服务器远程连接配置 二、使用powershell远

一、概述 官方提供的windows安装mysql有两种: 1、msi安装包 2、zip包 下面以zip这种形式进行安装。 二、安装 1、切换到Program Files下 cd 'C:\Program

一、枚举当前系统中已存在共享 win32_share对象便是windows系统上共享的磁盘、打印机、系统默认共享以及其他共享设备。 PS C:\Windows\system32> Get-WmiObj

一、下载安装包 https://github.com/tporadowski/redis/releases 如果下载慢,参考:http://1024s.top/blog/detail?blogId=4

原文:https://blog.csdn.net/laoy

一、基本概念 Elasticsearch是面向文档型数据库,一条数据在这里就是一个文档,比如下面这条用户数据: <pre class=

1、下载https://mirrors.huaweicloud.com/elasticsearch/ 根据自已的机器型号,连接对应的cpu架构,是x64、还是arm 2、安装 tar -zxvf el