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

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
主站蜘蛛池模板: 铜山县| 台东县| 邵阳市| 罗城| 巍山| 全南县| 泽州县| 永清县| 内黄县| 如皋市| 射阳县| 光泽县| 溧水县| 文昌市| 尼勒克县| 洪湖市| 尉氏县| 双峰县| 浑源县| 延津县| 哈巴河县| 平凉市| 辛集市| 霍城县| 濉溪县| 保定市| 南川市| 休宁县| 新沂市| 泸西县| 清水河县| 芜湖市| 贵阳市| 章丘市| 五指山市| 天峨县| 咸阳市| 阳新县| 桂东县| 白银市| 额尔古纳市|