能夠參考官網的教程安裝 https://www.elastic.co/guide/en/elasticsearch/reference/current/_installation.htmlhtml
安裝jdklinux
安裝JDK請參考另外一篇博客 http://www.javashuo.com/article/p-abgzzplc-hy.htmlgit
安裝Elasticsearchgithub
下載Elasticsearch 6.4.3 tarnpm
curl -L -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.3.tar.gz瀏覽器
解壓文件服務器
tar -xvf elasticsearch-6.4.3.tar.gzapp
進入bin目錄curl
cd elasticsearch-6.4.3/binelasticsearch
啓動節點和單個集羣
./elasticsearch
後臺執行
./elasticesrarch -d
安裝 elasticsearch-head
使用內置服務器運行
git clone git://github.com/mobz/elasticsearch-head.git cd elasticsearch-head npm install npm run start
瀏覽器打開 http://localhost:9100/
安裝kibana
下載安裝
wget https://artifacts.elastic.co/downloads/kibana/kibana-6.4.3-linux-x86_64.tar.gz shasum -a 512 kibana-6.4.3-linux-x86_64.tar.gz tar -xzf kibana-6.4.3-linux-x86_64.tar.gz cd kibana-6.4.3-linux-x86_64/
啓動 Kibana
./bin/kibana