标签:www javaapi details 代码 div search article 技术 mamicode
1.将Centos7集群都启动
2.将Centos的插件打开
head插件是一个用来浏览、与ES数据进行交互的web前端展示插件,是一个用来监视ES状态的客户端插件。
3.添加依赖
添加log4j2.xml https://www.cnblogs.com/JBLi/p/11403956.html
4.运行代码
<dependencies> <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>5.4.3</version> </dependency> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>transport</artifactId> <version>5.4.3</version> </dependency> <dependency> <groupId>org.apache.logging.log4j</groupId> <artifactId>log4j-core</artifactId> <version>2.9.0</version> </dependency> <dependency> <groupId>io.netty</groupId> <artifactId>netty-all</artifactId> <version>4.1.25.Final</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> </dependency> </dependencies>
标签:www javaapi details 代码 div search article 技术 mamicode
原文地址:https://www.cnblogs.com/JBLi/p/11407236.html