ES集群安装
2024-09-06 06:28:41
环境配置
安装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
最新文章
- 用javascript做一个视频播放器
- 第五次团队作业——【Alpha版本】随笔汇总
- px、em、rem区别介绍
- php 文件上传的基本方法
- Java笔试知识总结(第一回)
- 运维小东西:每天备份sql到远程服务器上
- C++设计模式之建造模式
- Hadoop学习笔记-008-CentOS_6.5_64_yum安装mysql
- C#传入一个时间值,判断年月日时分秒
- 在centos6,7 上编译安装内核
- uboot中 make xxx_config 的作用(以make smdk2410_config为例)
- 自动提取文章摘要AutoSummary
- Integer 与 int
- Jetty入门(1-3)Eclipse集成gradle-Gretty插件或maven-jetty插件运行应用
- BZOJ_2600_[Ioi2011]ricehub_二分答案
- 最简单打开三星note8三星galaxy susb调试模式的方法
- GIT初始学习记录
- ----Arrow functions----
- 大话前端解析Json对象
- NioEventLoopGroup的构造函数
热门文章
- SQLite进阶-17.视图
- DaemonSet和StatefulSet
- Centos7搭建在线yum源
- According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by de
- [转载]目标检测-Selective Search
- 请求上下文HttpContext解释
- 一种无法被Dump的jar包加密保护解决方案
- SuperMap iClient3D for WebGL 9D怎么将s3m图层的纹理变更精细些
- 8.Mapper动态代理
- 学习记录--JVM内存分析