下载
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
插件安装
head
注意,不支持5.x以上.
./elasticsearch-plugin -install mobz/elasticsearch-head
http://localhost:9200/_plugin/head/