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

  • 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
主站蜘蛛池模板: 昌吉市| 湖北省| 望江县| 遵义市| 孝昌县| 阿拉善左旗| 额尔古纳市| 东辽县| 南宁市| 双城市| 博湖县| 扎赉特旗| 贵南县| 衡山县| 寻甸| 黎川县| 渭源县| 门源| 孝义市| 罗田县| 中山市| 通江县| 南木林县| 佛学| 杭锦旗| 象山县| 张家界市| 澄江县| 班戈县| 卓尼县| 房山区| 凤翔县| 怀集县| 庆元县| 抚宁县| 凉山| 旅游| 利津县| 芦溪县| 长治县| 邢台县|