ElasticSearch全文检索__ElasticSearch 安装部署

举报
Smy1121 发表于 2019/06/22 17:22:41 2019/06/22
6.4k+ 0 0
【摘要】 ElasticSearch 安装部署

ElasticSearch 全文检索— ElasticSearch 安装部署

ElasticSearch 规划-集群规划

image.png

image.png

ElasticSearch 规划-用户规划

image.png

ElasticSearch 规划-目录规划

image.png

ElasticSearch 集群环境检查-时钟同步

1.设置本地时间

cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

2.集群时间日期同步NTP

yum install ntp

ntpdate pool.ntp.org

ElasticSearch 集群环境检查-hosts文件检查

配置ElasticSearch集群ip与hostname之间的对应关系

vi /etc/hosts

192.168.20.215 master

192.168.20.216 slave1

192.168.20.217 slave2

ElasticSearch 集群环境检查-禁用防火墙

查看防火墙状态

service iptables status

关闭防火墙

chkconfig iptables off //永久关闭防火墙

service iptables stop //临时关闭防火墙

ElasticSearch jdk安装

下载解压

配置环境变量

ElasticSearch 集群安装

下载

解压

修改config/elasticsearch.yml配置文件

ElasticSearch 插件安装

安装marvel插件(所有节点都需要安装)

bin/plugin install license

bin/plugin install marvel-agent

安装head插件(选择一个节点安装即可)

bin/plugin install mobz/elasticsearch-head

Kibana 安装

下载

解压

修改kibana.yml配置文件

安装marvel插件

bin/kibana plugin --install elasticsearch/marvel/latest

ElasticSearch、Kibana 启动

1.前台启动

bin/elasticsearch

bin/kibana

2.后台启动

bin/elasticsearch  -d  -p /home/hadoop/data/es/pid

nohup /home/ybxiang/kibana/kibana-4.5.1-linux-x64/bin/kibana & exit

ElasticSearch、Kibana Web管理

ElasticSearch

http://localhost:9200/

http://localhost:9200/_cluster/health?pretty

http://localhost:9200/_plugin/head/

Kibana

http://localhost:5601/app/marvel

ElasticSearch、Kibana Web管理

ElasticSearch 集群常见问题

http://www.xxxxxxxxxx.com/community/18136.do

【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

作者其他文章

评论(0

抱歉,系统识别当前为高风险访问,暂不支持该操作

    全部回复

    上滑加载中

    设置昵称

    在此一键设置昵称,即可参与社区互动!

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

    *长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。