1、更新centos7的庫
sudo yum update -y
2、安裝一系列文件(已安裝可以不安裝)
sudo rpm -ivh http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo rpm -ivh https://kojipkgs.fedoraproject.org//packages/http-parser/2.7.1/3.el7/x86_64/http-parser-2.7.1-3.el7.x86_64.rpm sudo yum install npm sudo yum install -y git sudo yum install -y bzip2
3、從git下載head
git clone git://github.com/mobz/elasticsearch-head.git
#將源碼包下載后剪切到/elasticsearch-head目錄,並改所屬用戶和組
sudo chown -R yangwj:yangwj ./elasticsearch-head
4、編譯head
#進入到elasticsearch-head中 cd elasticsearch-head #編譯安裝 npm install
5、修改elasticsearch-head-master/Gruntfile.js文件
打開elasticsearch-head-master/Gruntfile.js,找到下面connect屬性,新增hostname: '0.0.0.0', connect: { server: { options: { hostname: '0.0.0.0', port: 9100, base: '.', keepalive: true } } }
6、修改elasticsearch-5.4.3/config/elasticsearch.yml
編輯elasticsearch-5.4.3/config/elasticsearch.yml,加入以下內容: http.cors.enabled: true http.cors.allow-origin: "*"
7、啟動所有的es
./elasticsearch-5.4.3/bin/elasticsearch -d #后台啟動
8、運行head,因為head是nodejs編寫的,所以執行
#運行服務
npm run start
9、查看界面

看到這個說明成功了.......
10、集群安裝配置

