Help us understand the problem. What is going on with this article?

Ubuntu 18.04 に Elasticsearch をインストール

More than 1 year has passed since last update.

Ubuntu のカーネル

$ uname -a
Linux *** 4.15.0-36-generic #39-Ubuntu SMP Mon Sep 24 16:19:09 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Java のインストール

sudo apt install openjdk-11-jdk

Java のバージョン

$ java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.2, mixed mode)

Elasticsearch のインストール

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
sudo apt update
sudo apt install elasticsearch

サーバーの状態の確認

sudo systemctl status elasticsearch

サーバーの起動

sudo systemctl start elasticsearch

クライアントから、サーバーの確認

$ curl http://127.0.0.1:9200
{
  "name" : "bB-kkYq",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "xSYPhlTIQbmAbaIqfFdEVw",
  "version" : {
    "number" : "6.4.2",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "04711c2",
    "build_date" : "2018-09-26T13:34:09.098244Z",
    "build_snapshot" : false,
    "lucene_version" : "7.4.0",
    "minimum_wire_compatibility_version" : "5.6.0",
    "minimum_index_compatibility_version" : "5.0.0"
  },
  "tagline" : "You Know, for Search"
}

クライアントからの他の確認は、こちら
Elasticsearch の使い方

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away