Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

ELK experiment (7) Elasticsearch Cluster Management

Shulou Source: shulou.com Published: 2022-06-03 05:08:13 10月04日 Update

Head Plugin

The head plug-in is a cluster management tool for elasticsearch, a standalone web application written entirely in html5.

Github:

https://github.com/mobz/elasticsearch-head

git clone https://github.com/mobz/elasticsearch-head.git

installation

./ elasticsearch plugin -install /usr/elasticsearch-head

The new version does not support plugin direct installation

install NodeJS

yum install nodejs -y

There are no nodejs.

Go to the official website next

https://nodejs.org/en/download/package-manager/

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -

come back

yum install -y nodejs

yum install -y gcc-c++ make

There you go, 17M.

Verify installation

node -v

npm -v

Use domestic Taobao source to install grunt

cd elasticsearch-head/

npm install -g grunt --registry=https://registry.npm.taobao.org

npm install grunt --save

See if it's installed.

ls -d node_modules/grunt

npm install -g grunt-cli --registry=https://registry.npm.taobao.org

npm install --registry=https://registry.npm.taobao.org

Error bird, connection denied, allow me to fix an error

PhantomJS not found on PATH directory Not found, download time was rejected on github, great wall. What did President Xi say? Wise men build bridges, fools build walls.

The code branched off.

https://www.npmjs.com/package/phantomjs-prebuilt

npm install phantomjs-prebuilt

node ./ install.js

/usr/elasticsearch-6.2.3/plugins/elasticsearch-head

vi Gruntfile.js

hostname: '*', #add this line

vi _site/app.js

Update this sentence.

this.base_uri = this.config.base_uri || this.prefs.get("app-base_uri") || "http://192.168.209.168:9200";

start the service

[root@ELK_001 elasticsearch-head]# grunt server

file header

curl -i localhost:9100

http://192.168.209.168:9100/

But the cluster shows no connection.

vi /usr/elasticsearch-6.2.3/config/elasticsearch.yml

http.cors.enabled: true

http.cors.allow-origin: "*"

Add two sentences and it will be fine under the activation.

Tags: Clusters plug-ins management great chairman code branches tools fools files time wise people directories programs management tools web pages errors Taobao install support Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn Shulou Technology Xiaomi Docker