window 10 情况下:
  • 下载地址:https://www.elastic.co/cn/downloads/
    • 下载zip包 :
      elasticsearch-7.0.0-windows-x86_64.zip
    • 解压
    • 运行:./bin/elasticsearch.bat
    • 浏览器访问:http://localhost:9200 ,出现下面数据,即表示es安装成功。

{
"name" : "ZENGMH-PC",
"cluster_name" : "elasticsearch",
"cluster_uuid" : "LyBISA3OTgWNZjuRjgt5aA",
"version" : {
"number" : "7.0.0",
"build_flavor" : "default",
"build_type" : "zip",
"build_hash" : "b7e28a7",
"build_date" : "2019-04-05T22:55:32.697037Z",
"build_snapshot" : false,
"lucene_version" : "8.0.0",
"minimum_wire_compatibility_version" : "6.7.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}

  • 将elasticsearch设置为windows系统服务
    • 进入bin目录下执行: elasticsearch-service.bat install
    • 当出现:The service 'elasticsearch-service-x64' has been installed. 即安装成功。
    • elasticsearch-service.bat后面还可以执行这些命令 :
      • install: 安装Elasticsearch服务
      • remove: 删除已安装的Elasticsearch服务(如果启动则停止服务)
      • start: 启动Elasticsearch服务(如果已安装)
      • stop: 停止服务(如果启动)
      • manager:启动GUI来管理已安装的服务
  • elasticsearch-service.bat start 启动报异常:Failed starting 'elasticsearch-service-x64' service
    • 查看日志:
    • Failed creating Java %JAVA_HOME%\jre\bin\server\jvm.dll
    • 系统找不到指定的路径
    • 解决方法: elasticsearch-service.bat manager 打开GUI界面
    • JVM路径勾选“Use default” 或者手动选择jvm.dll路劲
elasticsearch入门-小茂博客
  • elasticsearch-head 插件安装