The project development uses the es,5.x version, however the network many installs the material to be unable to use, all is the previous old version, today got a morning finally finished, summarizes installs the step.
1. Installing Nodejs
To the official website https://nodejs.org/en/download Nodejs, and then directly installed on the computer, and then configure the environment variables, user variables added Node_path, the value of the installation path under the Node_modules folder path,
Add Node_home to the system variable, with a value of Nodejs's installation path,
Add the Node_home to the path path.
Whether the test was successful in CMD:
2. Installing grunt
Head plugin to start with this, start cmd under node installation path, enter
NPM install-g GRUNT-CLI
-G represents a global installation. The installation path is C:\USERS\YOURNAME\APPDATA\ROAMING\NPM and is added to the system variable path. After the installation is complete, check it and enter it in CMD:
3. Installing PHANTOMJS
PHANTOMJS is a non-interface, scriptable WebKit browser engine. It natively supports a variety of Web standards: DOM manipulation, CSS selectors, Json,canvas, and SVG.
After downloading the website phantomjs.exe
, add the directory to the system variables PATH
.
4.elasticsearch configuration allows cross-domain access to modify the Elasticsearch configuration file elasticsearch.yml
true http.cors.allow-origin: "*"
5. Start es 6. Download Head Plugin
If you have git, you can download it directly from git:
git clone git://github.com/mobz/elasticsearch-head.git
If not, download the zip format in the link below
HTTPS://github.com/mobz/elasticsearch-head
Start cmd in file directory after decompression
NPM Install
Start the installation, and then enter it in CMD after success
Grunt Server
Success, visit 9100 on the line!
Win7 under elasticsearch5.0 install head plugin