ElasticSearch Learning Road (1) Environment Construction

1. Install ElasticSearch method on CentOs 7

To start installing ES, first download the public key:

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

Add source:

cd yum.repos.d/
vi elasticsearch.repo

Edit elasticsearch.repo:

[elasticsearch-5.x]
name=Elasticsearch repository for 5.x packages
baseurl=https://artifacts.elastic.co/packages/5.x/yum
gpgcheck=1
gpgkey=https://artifacts.elastic.co/GPG-KEY-elasticsearch
enabled=1
autorefresh=1
type=rpm-md

Install:

yum install elasticsearch

 

Because resource issues may fail, it automatically looks for other resources. Wait patiently

Start the service after the installation is complete

Execute the command: service elasticsearch start

After starting ok, use the curl command to test curl http://localhost:9200

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324745022&siteId=291194637