https://github.com/medcl/elasticsearch-analysis-ik
https://www.elastic.co/downloads/past-releases/elasticsearch-2-3-2
es:2.3.2
ik:1.9.2
一安装es:
wget 'https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.2/elasticsearch-2.3.2.tar.gz'
tar -xvzf elasticsearch2.3.2

安装head:

./plugin install mobz/elasticsearch-head
二安装ik:
wget 'https://github.com/medcl/elasticsearch-analysis-ik/archive/v1.9.2.zip'
unzip

1.compile

mvn package

copy and unzip target/releases/elasticsearch-analysis-ik-{version}.zip to your-es-root/plugins/ik

2.restart elasticsearch

验证ik分词

curl -XPOST  'http://192.168.6.30:9200/test/_analyze?analyzer=ik&pretty' -d'{"text":"我是中国人"}'
三安装marven

下载:wget 'http://mirrors.hust.edu.cn/apache/maven/maven-3/3.3.9/binaries/apache-maven-3.3.9-bin.tar.gz'
解压:tar -xzvf apache-maven-3.0.5-bin.tar.gz
配置环境变量
sudo vim /etc/profile
添加
export M2_HOME=/home/weibo/apache-maven-3.0.5
export M2=$M2_HOME/bin
export PATH=$M2:$PATH
保存
source profile

测试
mvn -version