官术网_书友最值得收藏!

  • Mastering Kibana 6.x
  • Anurag Srivastava
  • 136字
  • 2021-07-16 18:20:07

Installing Elasticsearch with the RPM package

Download and install the public signing key:

rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch

Create a file named elasticsearch.repo in the /etc/yum.repos.d/ directory for Red Hat-based distributions or in the /etc/zypp/repos.d/ directory for openSUSE-based distributions, containing the following code:

[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

Your repository is now ready for use. You can now install Elasticsearch with one of the following commands:

You can use yum on CentOS and older Red Hat-based distributions:

sudo yum install elasticsearch

You can use dnf on Fedora and other newer Red Hat distributions:

sudo dnf install elasticsearch

You can use zypper on openSUSE-based distributions:

sudo zypper install elasticsearch

Elasticsearch can be started and stopped using the service command:

sudo -i service elasticsearch start
sudo -i service elasticsearch stop
主站蜘蛛池模板: 海盐县| 望谟县| 香格里拉县| 安仁县| 眉山市| 咸阳市| 册亨县| 东山县| 邯郸市| 平阴县| 海林市| 正蓝旗| 巴塘县| 桦川县| 石首市| 乌什县| 花莲县| 晋宁县| 厦门市| 天全县| 象山县| 伽师县| 博野县| 宁阳县| 通辽市| 隆回县| 宜君县| 博客| 蒙城县| 镇巴县| 和静县| 墨脱县| 庆安县| 霍林郭勒市| 苍山县| 高淳县| 天峨县| 仲巴县| 丁青县| 扬中市| 丰县|