1. 程式人生 > >Elasticsearch 5.x 安裝X-Pack

Elasticsearch 5.x 安裝X-Pack

x-pack是elasticsearch的一個擴充套件包,將安全,警告,監視,圖形和報告功能捆綁在一個易於安裝的軟體包中,也是官方推薦的。

1.關閉ElasticSearch服務

需要關閉Elasticsearch 服務,如果已經啟動的話,則安裝安裝x-pack失敗。

2、ElasticSearch5.x安裝x-pack

安裝過程中遇到選項直接Y過去就可以了

[elastic@node1 elasticsearch-5.6.5]$ bin/elasticsearch-plugin install x-pack
-> Downloading x-pack from elastic
[=================================================] 100
% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: plugin requires additional permissions @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ * java.io.FilePermission \\.\pipe\* read,write * java.lang.RuntimePermission accessClassInPackage.com.sun.activation.registries * java.lang.RuntimePermission getClassLoader * java.lang.RuntimePermission setContextClassLoader * java.lang.RuntimePermission setFactory * java.net.SocketPermission * connect,accept,resolve * java.security.SecurityPermission createPolicy.JavaPolicy * java.security.SecurityPermission getPolicy * java.security.SecurityPermission putProviderProperty.BC * java.security.SecurityPermission setPolicy * java.util.PropertyPermission * read,write * javax.net.ssl.SSLPermission setHostnameVerifier See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks. Continue with installation? [y/N]y @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: plugin forks a native controller @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ This plugin launches a native controller that is not subject to the Java security manager nor to system
call filters. Continue with installation? [y/N]y -> Installed x-pack [elastic@node1 elasticsearch-5.6.5]$
[elastic@node1 elasticsearch-5.6.5]$ ll plugins/
total 8
drwxrwxrwx 3 elastic elastic 4096 Jan 19 17:20 ik
drwxr-xr-x 4 elastic elastic 4096 Apr 24 14:06 x-pack
[elastic@node1 elasticsearch-5.6.5]$

3、kibana安裝x-pack

安裝過程時間較長,耐心等待

[elastic@node1 kibana-5.6.5]$ bin/kibana-plugin install x-pack
Attempting to transfer from x-pack
Attempting to transfer from https://artifacts.elastic.co/downloads/kibana-plugins/x-pack/x-pack-5.6.5.zip
Transferring 119513816 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete
[elastic@node1 kibana-5.6.5]$

4、啟動

[elastic@node1 elasticsearch-5.6.5]$ bin/elasticsearch -d
[[email protected] kibana-5.6.5]$ bin/kibana &
[1] 23641
[[email protected] kibana-5.6.5]$   log   [07:18:37.343] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [07:18:37.475] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:37.509] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:37.840] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:37.864] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [07:18:39.151] [warning][reporting] Generating a random key for xpack.reporting.encryptionKey. To prevent pending reports from failing on restart, please set xpack.reporting.encryptionKey in kibana.yml
  log   [07:18:39.161] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.224] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.226] [warning][security] Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml
  log   [07:18:39.234] [warning][security] Session cookies will be transmitted over insecure connections. This is not recommended.
  log   [07:18:39.303] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.316] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.389] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.403] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.415] [info][status][plugin:[email protected]] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.444] [info][status][plugin:[email protected]] Status changed from yellow to green - Kibana index ready
  log   [07:18:39.465] [info][license][xpack] Imported license information from Elasticsearch for [data] cluster: mode: trial | status: active | expiry date: 2018-05-24T15:17:51+08:00
  log   [07:18:39.486] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.490] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.491] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.493] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.495] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.497] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.498] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:39.514] [info][status][plugin:[email protected]] Status changed from green to yellow - Waiting for Monitoring Health Check
  log   [07:18:39.517] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [07:18:39.535] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [07:18:39.618] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [07:18:43.935] [info][status][plugin:[email protected]] Status changed from yellow to green - Ready
  log   [07:18:43.939] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [07:18:44.210] [info][status][plugin:[email protected]] Status changed from uninitialized to green - Ready
  log   [07:18:44.224] [info][listening] Server running at http://node1:5601
  log   [07:18:44.226] [info][status][ui settings] Status changed from uninitialized to green - Ready

這裡寫圖片描述
預設使用者名稱和密碼如下:

使用者名稱:elastic
密碼:changeme
這裡寫圖片描述

這裡寫圖片描述

5、修改elasticsearch密碼

可以直接在Kibana中執行

PUT _xpack/security/user/elastic/_password
{
    "password": "elastic"
}

這裡寫圖片描述

然後Kibana跳轉到登入頁面,用新密碼登入Kibana即可。

相關推薦

ElasticSearch 5學習——安裝Elasticsearch、Kibana和X-Pack

安裝準備: 安裝Elasticsearch唯一的要求是安裝官方新版的Java,包括對應的Jdk。 安裝Elasticsearch 首先到官網下載最新版本的Elasticsearch壓縮包。 可以使用命令,注意將最新的可用的下載連結填入: curl -L -O ht

Elasticsearch 5.x 安裝X-Pack

x-pack是elasticsearch的一個擴充套件包,將安全,警告,監視,圖形和報告功能捆綁在一個易於安裝的軟體包中,也是官方推薦的。 1.關閉ElasticSearch服務 需要關閉Elasticsearch 服務,如果已經啟動的話,則安裝安裝x-

ElasticSearch 5學習——Kibana+X-Pack介紹使用(全)

<div class="postBody"> <div id="cnblogs_post_body" class="blogpost-body cnblogs-markdown"><p>Kibana是一個為 E

Elasticsearch kibana logstash 安裝x-pack 外掛

1.ES 安裝x-pack外掛 (離線安裝請參考官方文件)官方文件在此 先停止es程序,進入es目錄 ,執行命令bin/elasticsearch-plugin install x-pack ,安裝過程如下 [es@elk elasticsearch-

ElasticSearch 5.4 安裝

nload text 學習 master mas nbsp 自動 table 安裝包 1. 前期準備    環境準備 IP地址 操作系統 內存 192.168.1.10 centos 7 16 192.168.1

Elasticsearch 5.0 安裝 Search Guard 5 插件

mage 查看 命令行 lib rip pan rar soci requires 一、Search Guard 簡介 Search Guard 是 Elasticsearch 的安全插件。它為後端系統(如LDAP或Kerberos)提供身份驗證和授權,並向Elast

ElasticSearch-5.0安裝head外掛

環境 Windows10企業版X64 JDK-1.8 ElasticSearch-5.0.0 node-v4.5.0-x64.msi git客戶端 步驟 安裝node到D盤。如D:\nodejs。 把NODE_HOME設定到環境變數裡(安裝包也可以自動

(一)elasticsearch-5.x安裝與配置

head(一)平臺所需的環境OS:CentOS 7.x minimalelasticsearch :elasticsearch-5.4.0版本jdk: 1.8已上版本創建普通用戶:appuser最新的下載路徑地址為:https://www.elastic.co/downloads (二)配置操作系統的環境並

CentOS 6 ElasticSearch 5.5.x 安裝指南

you 不支持 指南 文件 pri 索引 local arch echo 背景介紹 最新穩定版的ES 5.5.x版本對系統環境要求比較苛刻,如果不滿足的話,是無法正常啟動的。大家可以在ElasticSearch入門學習到如何安裝ES實例,這裏呢,主要向大家介紹如何解決ES在

ElasticSearch Kibana 和Logstash 安裝x-pack記錄

perm file addition 需要 per run windows ati 操作系統 前言 最近用到了ELK的集群,想想還是用使用官方的x-pack的monitor功能對其進行監控,這裏先上圖看看: 環境如下: 操作系統: window 2012 R

elasticsearch-5.6插件x-pack破解

elastic kibana x-pack 安裝 elastic x-pack /usr/share/elasticsearch/bin/elasticsearch-plugin install x-pack 重啟 elasticsearch systemctl restart elasticse

CentOS7 下安裝 ElasticSearch 5.x 及填坑

用戶及用戶組 log4j rip 還需 -- 指定 png process serve ElasticSearch簡介 什麽是ElasticSearch: ElasticSearch是基於Apache Lucene構建的開源搜索引擎 采用Java編寫,提供了簡單易用的RE

elasticsearch 5.x 安裝與優化 (Windows & linux)

es 5.x安裝與優化 es 5.x安裝與優化 1、jdk版本要求 2、安裝步驟 a、建立組與賬戶 b、給相應的目錄許可權 c、修改作業系統的

Elastisearch 5.x 安裝 bigdesk + x-pack

x-pack許可權認證+ bigdesk + Es 5.x bigdesk下載 zip 解壓 修改bigdesk-master/_site/js/util/bigdesk_extension.js

elasticsearch 安裝 x-pack 後重新生成密碼的方法

環境 伺服器:centos6 作業系統:win7 工具:CRT elasticsearch:6.0.0 命令 [[email protected] elasticsearch

Elasticsearch 5.x安裝head外掛

ES 5.0以上版本中不支援直接安裝head外掛,需要啟動一個服務。 head外掛是一個nodejs的工程,因此需要先安裝nodejs,使用npm來安裝依賴的包。 這裡使用了淘寶的cnpm來加速~ which yum &> /dev/null && yum

ElasticSearch 5.X安裝部署常見錯誤以及解決辦法

Java.lang.UnsupportedOperationException: seccomp unavailable: requires kernel 3.5+ with CONFIG_SECCOMPandCONFIG_SECCOMP_FILTERcompiledinatorg.elasticsearch

ElasticSearch、Kibana、X-pack安裝

一、ElasticSearch安裝及開機自啟 此處搭建的是一個單機版,搭建叢集的時候discovery.zen.ping.unicast.hosts與discovery.zen.minimum_master_nodes需要進行相應修改 1、建立使用者 新增具

Elasticsearch 5.x 安裝 Search Guard 5 外掛

一、Search Guard 簡介  Search Guard  是 Elasticsearch 的安全外掛。它為後端系統(如LDAP或Kerberos)提供身份驗證和授權,並向Elasticsearch新增稽核日誌記錄和文件/欄位級安全性。  Search Gu

ElasticSearch-5.x 安裝head外掛

環境 Windows10企業版X64JDK-1.8ElasticSearch-5.0.0node-v4.5.0-x64.msigit客戶端步驟 安裝node到D盤。如D:\nodejs。 把NODE_HOME設定到環境變數裡(安裝包也可以自動加入PATH環境變數)。測試一下