环境要求
jdk 1.7+
查看java版本信息:
java -version
echo $JAVA_HOME
下载
curl -L -O https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.4/elasticsearch-2.3.4.tar.gz
安装
#解压
tar -xvf elasticsearch-2.3.4.tar.gz
#修改配置文件
#cluster.name: my_cluster_name
#node.name: my_node_name
#network.host: 192.168.0.xxx
vi elasticsearch-2.3.4/config/elasticsearch.yml
#启动
./elasticsearch-2.3.4/bin/elasticsearch&
#指定集群和节点名称启动
./elasticsearch-2.3.4/bin/elasticsearch --cluster.name my_cluster_name --node.name my_node_name &