Loading [MathJax]/jax/output/CommonHTML/config.js
前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >专栏 >Elasticsearch 5.x 安装X-Pack

Elasticsearch 5.x 安装X-Pack

作者头像
程裕强
发布于 2022-05-06 10:54:34
发布于 2022-05-06 10:54:34
72700
代码可运行
举报
运行总次数:0
代码可运行

x-pack是elasticsearch的一个扩展包,将安全,警告,监视,图形和报告功能捆绑在一个易于安装的软件包中,也是官方推荐的。

1.关闭ElasticSearch服务

需要关闭Elasticsearch 服务,如果已经启动的话,则安装安装x-pack失败。

2、ElasticSearch5.x安装x-pack

安装过程中遇到选项直接Y过去就可以了

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[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]$
代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[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

安装过程时间较长,耐心等待

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[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、启动

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[elastic@node1 elasticsearch-5.6.5]$ bin/elasticsearch -d
代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
[elastic@node1 kibana-5.6.5]$ bin/kibana &
[1] 23641
[elastic@node1 kibana-5.6.5]$   log   [07:18:37.343] [info][status][plugin:kibana@5.6.5] Status changed from uninitialized to green - Ready
  log   [07:18:37.475] [info][status][plugin:elasticsearch@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:37.509] [info][status][plugin:xpack_main@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:37.840] [info][status][plugin:graph@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:37.864] [info][status][plugin:monitoring@5.6.5] 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:reporting@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.224] [info][status][plugin:security@5.6.5] 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:searchprofiler@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.316] [info][status][plugin:ml@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.389] [info][status][plugin:ml@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.403] [info][status][plugin:tilemap@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.415] [info][status][plugin:watcher@5.6.5] Status changed from uninitialized to yellow - Waiting for Elasticsearch
  log   [07:18:39.444] [info][status][plugin:elasticsearch@5.6.5] 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:xpack_main@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.490] [info][status][plugin:graph@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.491] [info][status][plugin:reporting@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.493] [info][status][plugin:security@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.495] [info][status][plugin:searchprofiler@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.497] [info][status][plugin:tilemap@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.498] [info][status][plugin:watcher@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:39.514] [info][status][plugin:monitoring@5.6.5] Status changed from green to yellow - Waiting for Monitoring Health Check
  log   [07:18:39.517] [info][status][plugin:grokdebugger@5.6.5] Status changed from uninitialized to green - Ready
  log   [07:18:39.535] [info][status][plugin:upgrade@5.6.5] Status changed from uninitialized to green - Ready
  log   [07:18:39.618] [info][status][plugin:console@5.6.5] Status changed from uninitialized to green - Ready
  log   [07:18:43.935] [info][status][plugin:monitoring@5.6.5] Status changed from yellow to green - Ready
  log   [07:18:43.939] [info][status][plugin:metrics@5.6.5] Status changed from uninitialized to green - Ready
  log   [07:18:44.210] [info][status][plugin:timelion@5.6.5] 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中执行

代码语言:javascript
代码运行次数:0
运行
AI代码解释
复制
PUT _xpack/security/user/elastic/_password
{
    "password": "elastic"
}

然后Kibana跳转到登录页面,用新密码登录Kibana即可。

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2018-04-24,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
暂无评论
推荐阅读
编辑精选文章
换一批
安装Kibana
地址:https://www.elastic.co/cn/downloads/past-releases/kibana-6-7-2
HLee
2021/01/04
1K0
安装Kibana
elk6.x 安装x-pack
参考: https://discuss.elastic.co/t/logstash-with-x-pack/90230 https://www.cnblogs.com/liang1101/p/8509978.html 也可以关闭xpack的monitoring检测 在logstash.yml中添加
日薪月亿
2019/05/14
1.6K0
elk6.x 安装x-pack
Install X-Pack
参考 Installing X-Pack in Elasticsearch 和 Install X-Pack
franket
2021/08/11
5560
ELK学习笔记之ELK6.0 X-pack设置用户名和密码
$ bin/elasticsearch-plugin install x-pack -> Downloading x-pack from elastic [=================================================] 100% @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: plugin requires additional permissions @
Jetpropelledsnake21
2019/05/31
8580
Elasticsearch7开启x-pack验证
在Elasticsearch7.3,x-pack已经作为默认的插件集成在Elasticsearch里面了,所以无需在bin/elasticsearch-plugin install x-pack了,直接在配置文件中启用就可以了。
行 者
2019/12/05
2.9K0
Elastic Stack之 Kibana 6.7.1版本安装
1、截至目前Elasticsearch 版本已经更新到了7.10.1版本了,这里先使用Kibana 6.7.1版本,给一个下载地址,如下所示:
别先生
2021/01/13
7140
Elasticsearch 5.x +Kibana 5.x 安装与配置
因为版本的问题,最新的版本安全级别提高了,不允许采用root帐号启动,所以我们要添加一个用户。
程裕强
2022/05/06
1.1K0
Elastic Stack 7.5 X-Pack 安全功能部署
elasticsearch kibana 基本上是多人使用的, 所以进行权限控制是必然,以提高安全保障
用户6641876
2020/02/19
1.3K0
elk + filebeat,6.3.2版本简单搭建,实现我们自己的集中式日志系统
  刚从事开发那段时间不习惯输出日志,认为那是无用功,徒增代码量,总认为自己的代码无懈可击;老大的叮嘱、强调也都视为耳旁风,最终导致的结果是我加班排查问题,花的时间还挺长的,要复现问题、排查问题等,幸亏那是公司内部员工用的系统,时间长一点也没什么大问题,但是如果是针对客户的,时间就代表很多东西了,那造成的影响就非常大了。自那以后养成了输出日志的习惯。
青石路
2018/09/10
1.4K0
elk + filebeat,6.3.2版本简单搭建,实现我们自己的集中式日志系统
ElasticStack的入门学习
1、Elasticsearch 6.x版本的安装,我这里使用Elasticsearch 6.7.0版本的。
别先生
2019/10/29
6550
ElasticStack的入门学习
浅谈ElasticSearch架构以及集成
Elasticsearch是一个高度可扩展的开源的分布式Restful全文搜索和分析引擎。它允许用户快速的(近实时的)存储、搜索和分析海量数据。它通常用作底层引擎技术,为具有复杂搜索功能和要求的应用程序提供支持。以下是ES可用于的一些场景:
chengcheng222e
2021/11/04
8000
ELK5.0安装教程
ELK升级后,安装稍微发生了点变化,在Elasticsearch中增加了很多资源上的限制,其他的倒是没什么变化。不过所有的安装都是基于JDK已经安装完的情况,且为1.8版本。 安装Elasticsearch 在官网下载elsaticsearch安装包: 下载地址 下载对应版本拷贝到服务器,然后执行下面命令解压缩: tar -zxvf elasticsearch-5.2.2.tar.gz 解压后进入对应的目录,修改配置文件: cluster.name: page-cluster node.name:
用户1154259
2018/01/17
9190
Elasticsearch6.2.2 X-Pack部署及使用详解
X-Pack已经开源,预计Elasticsearch6.3版本会全面集成,不再收费。 赶紧体验一下强大的X-Pack吧! 1、 X-Pack 概览 X-Pack 简介 1)利用 X-Pack 拓展可能性。 X-Pack 是集成了多种便捷功能的单个插件 — security、alerting、monitoring、reporting、graph 探索和 machine learning — 您可以在 Elastic Stack 中放心地使用这些功能。 2)单就其自身而言,Elastic Stack 就是一款
铭毅天下
2018/04/24
2K0
Elasticsearch6.2.2 X-Pack部署及使用详解
Elasticsearch X-pack的实际应用
用户数据的安全性一直是开发和运维人员关注的重点问题,Elasticsearch在6.8之前官方的X-pack安全认证功能都是收费的,所以很多人都采用Search Guard或者ReadOnly REST这些免费的安全插件对Elasticsearch进行安全认证。但是使用者都知道Search Guard插件存在很多Bug,比如节点gc超时导致集群掉线后,重启很有可能就要重新进行Search Guard的刷新。从Elasticsearch 6.8开始,Security 纳入 x-pack 的 Basic 版本中,免费使用一些基本的功能。本文将对X-pack安全认证的过程进行详细的讲解。
雨夜v1
2021/07/08
2.5K1
Elasticsearch X-pack的实际应用
ElasticSearch 6.x 学习笔记:3.Kibana插件
注意,ElasticSearch版本是6.1.1,kibana的版本必须对应,所以,此处下载kibana-6.1.1-linux-x86_64.tar.gz
程裕强
2022/05/06
4860
ElasticSearch 6.x 学习笔记:3.Kibana插件
Kibana 基础3
配置 修改 config/kibana.yml 中的 elasticsearch 配置 [root@h101 kibana]# cd kibana-4.3.1-linux-x64/config/ [root@h101 config]# ls kibana.yml [root@h101 config]# grep -v "^#" kibana.yml | grep -v "^$" [root@h101 config]# vim kibana.yml [root@h101 config]# grep -v "
franket
2022/02/10
3260
error [03:10:02.393] [warning][process] Error: Request Timeout after 30000ms
2.2、调整/data/elasticsearch-7.2.1/config/jvm.options的jvm参数。将内存调大,如下所示:
别先生
2021/08/19
1.8K0
部署 Kubernetes 集群日志插件 Fluentd、Elasticsearch、Kibana
哎_小羊
2018/01/02
7.5K0
部署 Kubernetes 集群日志插件 Fluentd、Elasticsearch、Kibana
Elasticsearch6.3.2之x-pack
验证的话可以通过访问 http://54288.top:9200/获取Authorization
丁D
2022/08/12
1.1K0
Elasticsearch6.3.2之x-pack
ElasticSearch 7.9.1 X-Pack 插件破解
文件路径:/usr/share/elasticsearch/modules/x-pack-core/x-pack-core-7.9.1.jar
陳斯托洛夫斯記
2024/08/07
2820
ElasticSearch 7.9.1 X-Pack 插件破解
相关推荐
安装Kibana
更多 >
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
本文部分代码块支持一键运行,欢迎体验
本文部分代码块支持一键运行,欢迎体验