环境:CentOS 6.8
1、下载
官方下载地址:
# wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.3.3/elasticsearch-2.3.3.rpm
本站下载地址:
# wget http://soft.ileiming.com/elk/elasticsearch-2.3.3.rpm
2、环境准备
# yum -y install java-1.8.0-openjdk.x86_64
3、配置环境变量
# vi /etc/profie
在最后添加如下内容:
JAVA_HOME=/usr export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$CLASSPATH PATH=$JAVA_HOME/bin:$PATH
让环境变量生效
# source /etc/profile
4、安装
# rpm -ivh elasticsearch-2.3.3.rpm
5、安装WEB界面插件
# /usr/share/elasticsearch/bin/plugin install mobz/elasticsearch-head
6、编辑配置文件
# vi /etc/elasticsearch/elasticsearch.yml
修改如下内容
network.host: 外网IP http.port: 9200
OK,配置安装完成
启动:
# service elasticsearch start