Article Directory
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: '*',
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
. Save and exit after the modification is completed
Install grunt-cli
Excuting an order:
npm install -g grunt-cli
Add Taobao mirror after successful execution
npm config set registry https://registry.npm.taobao.org
Then execute
npm install
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
After the startup is successful, you can enter the ip address: 9100 in the browser to see if it is successful.
Here, the installation of es-head-master has been successful, thank you