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

  • 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
主站蜘蛛池模板: 镇平县| 凤阳县| 五台县| 祁连县| 丘北县| 宜黄县| 屏东县| 龙门县| 石河子市| 和龙市| 钟山县| 静海县| 嘉黎县| 怀柔区| 苍南县| 易门县| 城固县| 永新县| 尉犁县| 政和县| 田阳县| 嘉禾县| 贵阳市| 安顺市| 正镶白旗| 亳州市| 青田县| 广丰县| 宁晋县| 鄂托克前旗| 儋州市| 郑州市| 永清县| 八宿县| 兴国县| 磐安县| 承德县| 南华县| 江都市| 台山市| 乌审旗|