elasticsearchインストール----シリーズ1はじめに

著作権:https://blog.csdn.net/xichengqc/article/details/90743807

関連インストールファイルの場所:
リンク:https://pan.baidu.com/s/1md2w6GJiXzsUKzBXJmJNBA
抽出コード:1dj7

  1. 仮想マシンおよびエキスにアップロードelasticseachインストールパッケージ
[root@localhost tempfile]# tar zxvf elasticsearch-5.5.2.tar.gz 
[root@localhost tempfile]# mv elasticsearch-5.5.2 /home/software/
  1. elasticsearchは、rootユーザーへの直接アクセスをサポートし、それでは、ユーザー・グループとユーザーを追加することはできません。
[root@localhost bin]# groupadd elasticsearch
[root@localhost bin]# useradd es -g elasticsearch -p es
  1. 新しいユーザアクセスESを追加するには
[root@localhost bin]# chown -R es /home/software/elasticsearch-5.5.2/
  1. エスデフォルト2Gによって占有されたメモリ空間を修正開始、512Mに変更することができます
[root@localhost config]# vim jvm.options

-Xms512m
-Xmx512m
ユーザーにスイッチES 5、binディレクトリに、elasticsearchを開始

[root@localhost bin]# su es
[es@localhost bin]$ ./elasticsearch
  1. ローカルアクセス
[root@localhost ~]# curl localhost:9200
{
  "name" : "Zulbm-k",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "gfOgDZ7OQIaXem6L5JwDvw",
  "version" : {
    "number" : "5.5.2",
    "build_hash" : "b2f0c09",
    "build_date" : "2017-08-14T12:33:14.154Z",
    "build_snapshot" : false,
    "lucene_version" : "6.6.0"
  },
  "tagline" : "You Know, for Search"
}

インストールは完了です

おすすめ

転載: blog.csdn.net/xichengqc/article/details/90743807