es-head-master installation, configuration and use

Unzip and install

head-master is a visualization tool of es. It is convenient for us to use the es
compressed package and upload it to the linux system as just before. Just unzip it and enter the command

unzip elasticsearch-head-master.zip

If you are prompted that the unzip command is not found, you can install it first and then decompress it:

yum install -y unzip zip

Similarly, modify the file name after the decompression is completed, personal habit culture (can be ignored)

mv elasticsearch-head-master head

Return to the software folder to install node

tar -zxvf node-v8.9.1-linux-x64.tar.gz

Modify the name after decompression is complete

mv node-v8.9.1-linux-x64 node8

After entering the head file, start preparing for configuration

Profile

input the command:

vi /etc/profile

After entering the file, the following information is added at the bottom:

export NODE_HOME=/root/software/node8
export PATH=$NODE_HOME/bin:$PATH

The path of NODE_HOME is the actual installation path, fill in according to your actual situation, save and exit after filling in

Configure the Gruntfile.js file

Enter the command after entering the head folder

vi Gruntfile.js

After entering the file, add it in the back position;

hostname: '*',

Insert picture description here
Then save and exit

Configure the _site/app.js file

input the command

vi _site/app.js

After entering the file, enter 4360gg in the view mode, you can quickly jump to the position of line 4360, and modify the localhost in the red box to your own ip address
Insert picture description here
. Save and exit after the modification is completed

Install grunt-cli

Excuting an order:

npm install -g grunt-cli

Insert picture description here
Add Taobao mirror after successful execution

npm config set registry https://registry.npm.taobao.org

Then execute

npm install

Insert picture description here
Because the grunt-cli file is downloaded and installed online, the installation failure may occur due to network problems. Multiple attempts can be successful. If it still fails, you can try to execute the command:

npm install [email protected] --ignore-scripts

And then try to initialize

start up

Enter the command to start the program:

npm run start 

Insert picture description here
After the startup is successful, you can enter the ip address: 9100 in the browser to see if it is successful.
Insert picture description here
Here, the installation of es-head-master has been successful, thank you

Guess you like

Origin blog.csdn.net/giantleech/article/details/114886384