windows安裝elasticsearch和elasticsearch-head插件


 

 

 

 

1、去官網下載最新軟件

  選擇zip包,https://www.elastic.co/downloads/elasticsearch

  

2、下載node

  必須 > 6.0已上

 

3、解壓elasticsearch壓縮包

 

4、修改config下的elasticsearch.yml

  

  

  

  注意:每個“:”后都必須有個空格

 

5、去 https://github.com/mobz/elasticsearch-head  下載head插件

 插件放到plugins目錄文件下

 

6、進入 head文件內 修改配置

   修改_site/app.js

  

  修改 Gruntfile.js

 

 

7、使用npm 安裝head需要的包  

  • cd elasticsearch-head
  • npm install
  • npm run start

 

 8、啟動elasticsearch

  

  有點尷尬,報錯了。

9、解決報錯 

[o.e.b.ElasticsearchUncaughtExceptionHandler] [node-1] uncaught exception in thread [main]
org.elasticsearch.bootstrap.StartupException: java.lang.IllegalArgumentException: property [elasticsearch.version] is missing for plugin [head]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:125) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.execute(Elasticsearch.java:112) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:86) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:124) ~[elasticsearch-cli-6.2.4.jar:6.2.4]
at org.elasticsearch.cli.Command.main(Command.java:90) ~[elasticsearch-cli-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:92) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:85) ~[elasticsearch-6.2.4.jar:6.2.4]
Caused by: java.lang.IllegalArgumentException: property [elasticsearch.version] is missing for plugin [head]
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:226) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.plugins.PluginInfo.readFromProperties(PluginInfo.java:184) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Spawner.spawnNativePluginControllers(Spawner.java:75) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:167) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:323) ~[elasticsearch-6.2.4.jar:6.2.4]
at org.elasticsearch.bootstrap.Elasticsearch.init(Elasticsearch.java:121) ~[elasticsearch-6.2.4.jar:6.2.4]

因為 missing for plugin [head],意思是找不到head插件。

從官方文檔中,6.2版本需要將head插件放到elasticsearch目錄中,所以,將head目錄文件剪切拿到上一層目錄中

 

 10、啟動軟件

  

  ,再點擊elasticsearch.bat 

  

 

  這樣就完成下載和配置head插件了。

  分享不易,請點個贊。

 

  

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM