首页 > 代码库 > elasticsearch rpm 安装
elasticsearch rpm 安装
参考:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-repositories.html
Download and install the Public Signing Key
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
[elasticsearch-1.4]
name=Elasticsearch repository for 1.4.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
And your repository is ready for use. You can install it with :
yum install elasticsearch
Configure Elasticsearch to automatically start during bootup. If your distribution is using SysV, then you will need to run :
chkconfig --add elasticsearch
Otherwise if your distribution is using systemd :
sudo /bin/systemctl daemon-reload
sudo /bin/systemctl enable elasticsearch.service
安装脚本:
sudo rpm --import https://packages.elasticsearch.org/GPG-KEY-elasticsearch
sudo cat >/etc/yum.repos.d/elasticsearch.repo <<EOF
[elasticsearch-1.4]
name=Elasticsearch repository for 1.4.x packages
baseurl=http://packages.elasticsearch.org/elasticsearch/1.4/centos
gpgcheck=1
gpgkey=http://packages.elasticsearch.org/GPG-KEY-elasticsearch
enabled=1
EOF
yum install elasticsearch
来自为知笔记(Wiz)
elasticsearch rpm 安装
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。