Elasticsearch安裝

下載

wget “https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-5.1.2.zip

wget --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie;" 
--no-check-certificate
"https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/zip/elasticsearch/2.3.4/elasticsearch-2.3.4.zip"

問題彙總

JDK的版本

JDK的版本問題, 最好是JDK8, 否則會報錯誤.

設置host

設置host, 這樣,其他機器可訪問
修改配置文件 config/elasticsearch.yml
cluster.name: cluster1
network.host: 0.0.0.0

vm.max_map_count

錯誤提示:max virtual memory areas vm.max_map_count [65530] likely too low, increase to at least
解決
vim /etc/sysctl.conf
添加下面配置:vm.max_map_count=655360
並執行命令:sysctl -p

插件安裝

地址

注意,不支持5.x以上.

./elasticsearch-plugin -install mobz/elasticsearch-head
http://localhost:9200/_plugin/head/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章