博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
elasticsearch rpm 安装
阅读量:7073 次
发布时间:2019-06-28

本文共 1254 字,大约阅读时间需要 4 分钟。

参考:

Download and install the Public Signing Key

 
  1. rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch

Add the following in your /etc/yum.repos.d/ directory in a file named (for example) elasticsearch.repo

 
  1. [elasticsearch-1.4]
  2. name=Elasticsearch repository for 1.4.x packages
  3. baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
  4. gpgcheck=1
  5. gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
  6. enabled=1

And your repository is ready for use. You can install it with :

 
  1. yum install elasticsearch

Configure Elasticsearch to automatically start during bootup. If your distribution is using SysV, then you will need to run :

 
  1. chkconfig --add elasticsearch

Otherwise if your distribution is using systemd :

 
  1. sudo /bin/systemctl daemon-reload
  2. sudo /bin/systemctl enable elasticsearch.service

安装脚本:

 
  1. sudo rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch
  2. sudo cat >/etc/yum.repos.d/elasticsearch.repo <<EOF
  3. [elasticsearch-1.4]
  4. name=Elasticsearch repository for 1.4.x packages
  5. baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
  6. gpgcheck=1
  7. gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
  8. enabled=1
  9. EOF
  10. yum install elasticsearch

转载于:https://www.cnblogs.com/liyan101/p/4211861.html

你可能感兴趣的文章
Django 碎片集合
查看>>
Merge与Rebase冲突的解决
查看>>
python中自定义排序函数
查看>>
微信快速开发框架(五)-- 利用快速开发框架,快速搭建微信浏览博客园首页文章...
查看>>
hdu-1532 Drainage Ditches---最大流模板题
查看>>
mysql分表和表分区详解
查看>>
前端规范1-HTML规范
查看>>
NYOJ 6(贪心)
查看>>
深入学习hbase:表,列族,列标识,版本和cell
查看>>
android中同源策略绕过类漏洞学习笔记
查看>>
MYSQL数据库
查看>>
linux环境搭建seafile客户端自动上传文件
查看>>
10.27 函数
查看>>
MySQL查询缓存
查看>>
【问题总结】问题行
查看>>
这种放法会使div像一张纸一样
查看>>
阿里云环境配置
查看>>
Codeforces 455C
查看>>
PHP请求页面
查看>>
【动态规划】旅行
查看>>