elasticsearch centos7安装
程序员文章站
2022-07-04 23:48:07
...
安装elasticsearch
1、下载
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/rpm/elasticsearch/2.3.3/elasticsearch-2.3.3.rpm2、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>
#
上一篇: spring的事务管理配置