elasticsearch centos7安装

来源:互联网 发布:网络贷款利息计算器 编辑:程序博客网 时间:2024/06/01 10:21


安装elasticsearch

1、下载

wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.3.3/elasticsearch-2.3.3.rpm
2、yum 安装

yum install elasticsearch-2.3.3.rpm

3、启动
查看执行文件所在目录
rpm -ql elasticsearch从输入的目录列表中找到bin目录,即执行文件所在目录

进入bin目录把它加入服务
/sbin/chkconfig --add elasticsearch
启动
service elasticsearch start
或者不加入服务直接启动
sudo /etc/init.d/elasticsearch start

本人直接下载tar.gz 文件,解压即可

安装head插件

usr/local/elasticsearch/bin/plugin install mobz/elasticsearch-head


远程访问

安装后默认绑定的ip为127.0.0.1,只能本地访问。如果要远程访问需要修改配置文件的绑定的ip


## Elasticsearch performs poorly when the system is swapping the memory.## ---------------------------------- Network -----------------------------------## Set the bind address to a specific IP (IPv4 or IPv6):# network.host: 115.28.11.xx  #绑定ip## Set a custom port for HTTP:# http.port: 9200    #绑定http访问端口## For more information, see the documentation at:# <http://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html>#



0 0
原创粉丝点击