blank的编程之路


  • 首页

  • 归档

  • 搜索
consul atomikos mybatisplus druid nexus nas named bind mysqldump acme.sh Dockerfile rsync keepalived swarm kibana ubuntu linux scp bugfix https ssl certbot curl gogs adminer harbor yum portainer python kubernetes idea java springboot maven docker-compose redis nginx mysql brew git chocolatey jenkins elasticsearch docker haproxy rabbitmq centos

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

发表于 2019-04-01 | 分类于 运维 | 0 | 阅读次数 824

导入官方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
  • 本文作者: blank
  • 本文链接: https://blankhang.com/2019/04/01/1554099875633
  • 版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0 许可协议。转载请注明出处!
# consul # atomikos # mybatisplus # druid # nexus # nas # named # bind # mysqldump # acme.sh # Dockerfile # rsync # keepalived # swarm # kibana # ubuntu # linux # scp # bugfix # https # ssl # certbot # curl # gogs # adminer # harbor # yum # portainer # python # kubernetes # idea # java # springboot # maven # docker-compose # redis # nginx # mysql # brew # git # chocolatey # jenkins # elasticsearch # docker # haproxy # rabbitmq # centos
centos7 yum 安装 Jenkins
yum 安装 redis 6
© 2023 blank
Everything is energy and everything has a frequency