yum 安装 官方elasticsearch 6.X/7.x
blank
blank
发布于 2019-04-01 / 857 阅读 / 0 评论 / 0 点赞

yum 安装 官方elasticsearch 6.X/7.x

导入官方repo源 从 6 或者7版本中选择一个就好

导入官方6.X/7.X版本repo源
vim /etc/yum.repos.d/elasticsearch-6.repo

[elasticsearch-6.x]
name=Elasticsearch repository for 6.x packages
baseurl=https://artifacts.elastic.co/packages/6.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md
或导入官方7.X版本repo源
vim /etc/yum.repos.d/elasticsearch-7.repo

[elasticsearch-7.x]
name=Elasticsearch repository for 7.x packages
baseurl=https://artifacts.elastic.co/packages/7.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

安装 elasticsearch

sudo yum install -y elasticsearch

启动 && 开机自启

systemctl start elasticsearch && systemctl enable elasticsearch

校验安装

systemctl status elasticsearch

安装HQ可视化管理

docker run --restart=always -d -p 5000:5000 elastichq/elasticsearch-hq

相关配置文件信息

Directory layout of RPM
The RPM places config files, logs, and the data directory in the appropriate locations for an RPM-based system:
Type	Description	Default Location	Setting
home
Elasticsearch home directory or $ES_HOME
/usr/share/elasticsearch
bin
Binary scripts including elasticsearch to start a node and elasticsearch-plugin to install plugins
/usr/share/elasticsearch/bin
conf
Configuration files including elasticsearch.yml
/etc/elasticsearch
ES_PATH_CONF
conf
Environment variables including heap size, file descriptors.
/etc/sysconfig/elasticsearch
data
The location of the data files of each index / shard allocated on the node. Can hold multiple locations.
/var/lib/elasticsearch
path.data
logs
Log files location.
/var/log/elasticsearch
path.logs
plugins
Plugin files location. Each plugin will be contained in a subdirectory.
/usr/share/elasticsearch/plugins

评论