Es5.4 installs head and ik Chinese word segmentation plug-ins
Install the maven Packaging tool
Wget http://mirror.bit.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gztar-xf apache-maven-3.3.9-bin.tar.gzmv apache-maven-3.3.9 / usr/local/data/apache-mavenvim / etc/profileexport MAVEN_HOME=/usr/local/data/apache-mavenexport PATH=$PATH:$MAVEN_HOME/binsource / etc/profile
two。 Install ik participle
Git clone https://github.com/medcl/elasticsearch-analysis-ikcd elasticsearch-analysis-ik/mvn packagell / usr/local/data/elasticsearch-analysis-ik/target/releases/total 4400 RWMurray Rafael-1 root root 4502096 May 26 11:29 elasticsearch-analysis-ik-5.4.0.zip
Create a participle directory
Mkdir / usr/local/data/elasticsearch/plugins/ikcp target/releases/elasticsearch-analysis-ik-5.4.0.zip / usr/local/data/elasticsearch/plugins/ik/cd / usr/local/data/elasticsearch/plugins/ik & & unzip elasticsearch-analysis-ik-5.4.0.zipchown-R es.es / usr/local/data/elasticsearch
Test word segmentation
Http://172.16.230.198:9200/index/_analyze?analyzer=ik_max_word&text= × ×
3. Install the head plug-in
Yum-y install git npmgit clone git://github.com/mobz/elasticsearch-head.gitcd elasticsearch-headnpm installnpm install-g cnpm-- registry= modifies the head listening address to private network vim Gruntfile.js connect: {server: {options: {hostname:'172.16.230.198' Port: 9100, base:'. Keepalive: true}} launch the elasticsearch-head plug-in npm install grunt-cliln-s / usr/local/data/elasticsearch-head/node_modules/grunt/bin/grunt / usr/bin/grunt server & in the background
Problem encountered: the head plug-in cannot connect to the es cluster shows that the cluster health value is not connected
Modify the es listening address of head
Cd elasticsearch-headvim _ site/app.js
Modify the "http://localhost:9200" field to the native ES port and IP
Vim $ES_HOME$/config/elasticsearch.yml# adds the following field http.cors.enabled: truehttp.cors.allow-origin: "*"
Just restart es and head