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