1、下載elasticsearch
git clone git://github.com/medcl/elasticsearch-rtf.git -b master --depth 1
2诫欠、查看已安裝的插件
1升薯、切換到elasticsearch目錄
cd elasticsearch-rtf/
2莱褒、查看已安裝的插件
bin/elasticsearch-plugin list
需要用的插件analysis-ik
![
](https://upload-images.jianshu.io/upload_images/18457498-eb3614b7a3260068.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
3、刪除不用的插件涎劈,減少內存的使用
1 bin/elasticsearch-plugin list >/tmp/plugin.log
2 vim /tmp/plugin.log刪除analysis-ik
3 刪除插件多余的插件
cat /tmp/plugin.log|xargs -I {} bin/elasticsearch-plugin remove {}
如圖
![image.png](https://upload-images.jianshu.io/upload_images/18457498-eea8b2241b74348f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
4广凸、成功
4、運行elasticsearch
bin/elasticsearch -d
5蛛枚、查看是否運行成
ps aux|grep java
vim logs/elasticsearch