Elasticsearch-head安装

JDK 1.8 直接yum install open-jdk1.8.0即可

elasticsearch 配置yum可直接安装

[root@localhost yum.repos.d]# cat elastic.repo
[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

yum install elasticsearch

systemctl start elasticsearch 启动

重点:

安装elasticsearch-head

<1>安装Node.js

<2>验证node -v npm -v

显示出版本号即安装完成

<3>安装git并下载elasticsearch-head
yum install –y git git clone https://github.com/mobz/elasticsearch-head.git

<4>cd elasticsearch-head && npm install -g grunt

<5>npm install

<6>修改配置 elasticsearch-head下Gruntfile.js文件

<7>

<8>修改elasticsearch配置文件 修改elasticsearch.yml文件加入以下内容:

是否支持跨域

http.cors.enabled: true

*表示支持所有域名

http.cors.allow-origin: “*”
《9》启动插件

/elasticsearch-head/node_modules/grunt/bin/grunt server &
《10》验证集群OK

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值