环境配置

安装openjdk(依赖)

yum -y install java-1.8.-openjdk.x86_64

安装elasticsearch

yum -y install elasticsearch

配置 /etc/elasticsearch/elasticsearch.yml

cluster.name: myelk
node.name: es1 # 本机的主机名
network.host: 0.0.0.0 # 主机监听的地址
discovery.zen.ping.unicast.hosts: ["es1", "es2","es3"] # 集群成员,不用列出全部成员

启动服务,查看9200、9300端口

systemctl restart elasticsearch
syetemctl enable elasticsearch ss -palntu | grep
ss -plantu | grep

ES集群验证

firefox http://192.168.1.61:9200/_cluster/health?pretty

ES 常用http请求

- PUT                       # 增
- DELETE       # 删 
- POST      # 改
- GET         # 查

curl 常用参数

- A      #修改请求agent

- X      # 设置请求方法

- i       # 显示返回头信息  

ES插件

安装插件 ,(本地安装时,绝对路径前加file:///)

[root@es5 ~]# /usr/share/elasticsearch/bin/plugin install ftp://192.168.4.254/package/soft/elasticsearch-head-master.zip

[root@es5 ~]# /usr/share/elasticsearch/bin/plugin install ftp://192.168.4.254/package/soft/bigdesk-master.zip

[root@es5 ~]# /usr/share/elasticsearch/bin/plugin install ftp://192.168.4.254/package/soft/elasticsearch-kopf-master.zip

查看安装的插件

[root@es5 ~]# /usr/share/elasticsearch/bin/plugin list
Installed plugins in /usr/share/elasticsearch/plugins:
- bigdesk
- head
- kopf

使用插件

[root@ray nsd1810]# firefox http://192.168.1.65:9200/_plugin/head

最新文章

  1. 用javascript做一个视频播放器
  2. 第五次团队作业——【Alpha版本】随笔汇总
  3. px、em、rem区别介绍
  4. php 文件上传的基本方法
  5. Java笔试知识总结(第一回)
  6. 运维小东西:每天备份sql到远程服务器上
  7. C++设计模式之建造模式
  8. Hadoop学习笔记-008-CentOS_6.5_64_yum安装mysql
  9. C#传入一个时间值,判断年月日时分秒
  10. 在centos6,7 上编译安装内核
  11. uboot中 make xxx_config 的作用(以make smdk2410_config为例)
  12. 自动提取文章摘要AutoSummary
  13. Integer 与 int
  14. Jetty入门(1-3)Eclipse集成gradle-Gretty插件或maven-jetty插件运行应用
  15. BZOJ_2600_[Ioi2011]ricehub_二分答案
  16. 最简单打开三星note8三星galaxy susb调试模式的方法
  17. GIT初始学习记录
  18. ----Arrow functions----
  19. 大话前端解析Json对象
  20. NioEventLoopGroup的构造函数

热门文章

  1. SQLite进阶-17.视图
  2. DaemonSet和StatefulSet
  3. Centos7搭建在线yum源
  4. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by de
  5. [转载]目标检测-Selective Search
  6. 请求上下文HttpContext解释
  7. 一种无法被Dump的jar包加密保护解决方案
  8. SuperMap iClient3D for WebGL 9D怎么将s3m图层的纹理变更精细些
  9. 8.Mapper动态代理
  10. 学习记录--JVM内存分析