安裝我就以本身的項目爲主我本身自己就是一下小項目從部署向下linux
安裝步驟:
git
1. 安裝jdk或者jre,而後設置好環境變動JAVA_HOME;
github
2. 下載elasticsearch,將之解壓,到你項目文件下 個人ubuntu 12.4 建立的文件目錄ubuntu
/home/kuvplus/elasticsearchwindows
你能夠經過工具下載上傳 到文件上而後解壓http://www.elasticsearch.org/download/瀏覽器
我用命令切換到上面路徑服務器
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.10.tar.gz app
./bin/elasticsearch -f 查看狀態elasticsearch
瀏覽器 http://ip/9200工具
若要使用前臺方式運行,執行
elasticsearch console
若要使用後臺方式運行,執行:
elasticsearch start
若要中止正在運行的elasticsearch,執行
elasticsearch stop
若要安裝elasticsearch到系統啓動項,執行:
elasticsearch install
若要從系統啓動項裏面移除elasticsearch,執行
elasticsearch remove
1. 在https://github.com/elasticsearch/elasticsearch-servicewrapper下載service文件夾,並將它放置到\home\kuvplus\elasticsearch\bin下;
你能夠根據你的系統狀況,將無後綴的文件修改爲後綴名爲exe,例如,你的系統爲linux_64,則將elasticsearch-linux-x86-64改成elasticsearch-linux-x86-64.exe,顯然,目前不支持64位的windows系統。