Visualization elasticsearch-head mounting plug

1 . Resources 

# wget https://github.com/mobz/elasticsearch-head/archive/master.zip

2. Extract the zip file

# unzip master.zip

If prompted to unzip: command not found the # yum install unzip installed about

3 Access Catalog

# elasticsearch-head-CD Master /

4. CLI-mounted Grunt

# -g Grunt NPM-CLI the install

if prompted npm: command not found yum install nodejs the #

5 compiled file

# NPM the install

# NPM the install Grunt - dev-the Save

6. Check grunt version

# grunt -version

7. modify app.js file

# vi _site / app.js 

   The this.base_uri = this.config.base_uri || this.prefs.get ( "app -base_uri") || "http: // localhost: 9200";
  the localhost es modify your server address
  this.base_uri = this .config.base_uri || this.prefs.get ( "app-base_uri ") || "http: // your ip: 9200";

8. Modify support cross-domain es 

es installation config / elasticsearch.yml directory
  

  # Add the following fields
  http.cors.enabled: to true
  http.cors.allow-Origin: "*"

  9. backstage head start

  grunt server &

 

Guess you like

Origin www.cnblogs.com/pangyangqi/p/11277588.html