elasticsearch-1

在这里插入图片描述

单实例安装

1、官网下载tar压缩包 https://www.elastic.co/downloads/elasticsearch

2、将下载好的压缩包elasticsearch-5.5.2.tar.gz上传到linux服务器,并解压缩 tar -vxf elasticsearch-5.5.2.tar.gz

3、cd进入到elasticsearch-5.5.2目录中,启动elasticsearch服务命令 sh ./bin/elasticsearch (启动需要java环境1.8)当输出日志有started关键字,则启动成功

4、elasticsearch默认监听127.0.0.1:9200,浏览器输入地址,测试启动成功

http://img.mukewang.com/60af9734000113c818330645.jpg

在这里插入图片描述

安装 elasticsearch-head

修改 elasticsearch/config/elasticsearch.yml

添加

http.cors.enabled: true
http.cors.allow-origin: "*"

下载 elasticsearch-head 或者 git clone 到随便一个文件夹

安装nodejs

cd /path/to/elasticsearch-head

npm install -g grunt-cli

npm install

grunt server

http://localhost:9100/

Enjoy it.

分布式安装

Elasticsearch 常用配置参数总结
https://www.cnblogs.com/zhiqiangzhang/p/11425473.html

将一个服务指定为master.在config的elasticserach.yml作以下配置:

http.cors.enabled: true

http.cors.allow-origin: “*”

cluster.name: lijiafang

node.name: master

node.master: true

network.host: 127.0.0.1

配置节点

cluster.name: lijiafang

node.name: slave1

network.host: 127.0.0.1

http.port: 8200

discovery.zen.ping.unicast.hosts: [“127.0.0.1”]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值