Ubuntu 18.4安装elasticsearch 8.3.2 + kibana 8.3.2

2023-05-16

集群规划

主机名IP地址角色
els-master10.20.2.200ELS-MASTER
kibana10.20.2.203KIBANA

els安装

wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.3.2-linux-x86_64.tar.gz
tar xf elasticsearch-8.3.2-linux-x86_64.tar.gz
mv elasticsearch-8.3.2 /usr/local/
vim /usr/local/elasticsearch-8.3.2/config/elasticsearch.yml
# ======================== Elasticsearch Configuration =========================
#
# NOTE: Elasticsearch comes with reasonable defaults for most settings.
#       Before you set out to tweak and tune the configuration, make sure you
#       understand what are you trying to accomplish and the consequences.
#
# The primary way of configuring a node is via this file. This template lists
# the most important settings you may want to configure for a production cluster.
#
# Please consult the documentation for further information on configuration options:
# https://www.elastic.co/guide/en/elasticsearch/reference/index.html
#
# ---------------------------------- Cluster -----------------------------------
#
# Use a descriptive name for your cluster:
#
cluster.name: ES-Cluster
#
# ------------------------------------ Node ------------------------------------
#
# Use a descriptive name for the node:
#
node.name: els-master
#
# Add custom attributes to the node:
#
#node.attr.rack: r1
#
# ----------------------------------- Paths ------------------------------------
#
# Path to directory where to store the data (separate multiple locations by comma):
#
path.data: /usr/local/elasticsearch-8.3.2/data
#
# Path to log files:
#
path.logs: /usr/local/elasticsearch-8.3.2/logs
#
# ----------------------------------- Memory -----------------------------------
#
# Lock the memory on startup:
#
#bootstrap.memory_lock: true
#
# Make sure that the heap size is set to about half the memory available
# on the system and that the owner of the process is allowed to use this
# limit.
#
# Elasticsearch performs poorly when the system is swapping the memory.
#
# ---------------------------------- Network -----------------------------------
#
# By default Elasticsearch is only accessible on localhost. Set a different
# address here to expose this node on the network:
#
network.host: 0.0.0.0
#
# By default Elasticsearch listens for HTTP traffic on the first free port it
# finds starting at 9200. Set a specific HTTP port here:
#
http.port: 9200
#
# For more information, consult the network module documentation.
#
# --------------------------------- Discovery ----------------------------------
#
# Pass an initial list of hosts to perform discovery when this node is started:
# The default list of hosts is ["127.0.0.1", "[::1]"]
#
discovery.seed_hosts: ["10.20.2.200", "10.20.2.201","10.20.2.202"]
#
# Bootstrap the cluster using an initial set of master-eligible nodes:
#
cluster.initial_master_nodes: ["10.20.2.200"]
#
# For more information, consult the discovery and cluster formation module documentation.
#
# --------------------------------- Readiness ----------------------------------
#
# Enable an unauthenticated TCP readiness endpoint on localhost
#
#readiness.port: 9399
#
# ---------------------------------- Various -----------------------------------
#
# Allow wildcard deletion of indices:
#
#action.destructive_requires_name: false
xpack.security.enabled: true
xpack.security.transport.ssl.enabled: true
xpack.security.transport.ssl.verification_mode: certificate
xpack.security.transport.ssl.keystore.path: /usr/local/elasticsearch-8.3.2/config/elastic-certificates.p12
xpack.security.transport.ssl.truststore.path: /usr/local/elasticsearch-8.3.2/config/elastic-certificates.p12

# 配置环境
echo vm.max_map_count=655360 >> /etc/sysctl.conf
sysctl -p

# 生成证书
/usr/local/elasticsearch-8.3.2/bin/elasticsearch-certutil ca
/usr/local/elasticsearch-8.3.2/bin/elasticsearch-certutil cert --ca /usr/local/elasticsearch-8.3.2/elastic-stack-ca.p12
mv /usr/local/elasticsearch-8.3.2/elastic-* /usr/local/elasticsearch-8.3.2/config/
/usr/local/elasticsearch-8.3.2/bin/elasticsearch-keystore create

# 目录授权
useradd -r -s /bin/bash elastic
chown elastic. -R /usr/local/elasticsearch-8.3.2/

# 启动elastic
su - elastic
/usr/local/elasticsearch-8.3.2/bin/elasticsearch -d

# 设置密码,可不重启elastic
/usr/local/elasticsearch-8.3.2/bin/elasticsearch-setup-passwords interactive

Enter password for [elastic]:

Enter password for [apm_system]:

Enter password for [kibana_system]:

Enter password for [logstash_system]:

Enter password for [beats_system]:

Enter password for [remote_monitoring_user]:

kibana

wget https://artifacts.elastic.co/downloads/kibana/kibana-8.3.2-linux-x86_64.tar.gz
tar xf kibana-8.3.2-linux-x86_64.tar.gz
mv kibana-8.3.2 /usr/local/
vim /usr/local/kibana-8.3.2/config/kibana.yml
server.port: 5601
server.host: "0.0.0.0"
server.publicBaseUrl: "http://10.20.2.203:5601"
elasticsearch.hosts: ["http://10.20.2.200:9200"]
elasticsearch.username: "kibana_system"
elasticsearch.password: "kibana_system"

useradd -r -s /bin/bash kibana
chown kibana. -R /usr/local/kibana-8.3.2/

su - kibana
cd /usr/local/kibana-8.3.2/
nohup bin/kibana &
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Ubuntu 18.4安装elasticsearch 8.3.2 + kibana 8.3.2 的相关文章

  • 如何在 Ubuntu 22.04 LTS 上安装 MySQL 5.7?

    我工作的公司使用较旧的堆栈 我需要在 Ubuntu 22 04 LTS 上安装 MySQL 5 7 才能在本地处理一些项目 有谁知道该怎么做 除了在 Ubuntu 20 04 或更低版本上安装之外 我找不到任何东西 下载 wget http
  • Vim:无法让病原体加载包

    我在 Stackoverflow 和 github 等上阅读了有关此问题的其他五个问题 但一直无法解决这个问题 此时我完全迷失了 我使用的是 Ubuntu 11 10 和 Vim 7 3 这是我的 vimrc set nocp call p
  • 在菜单中显示 gtk.Calendar?

    我想构建一个上下文菜单 其中包含用于选择日期的菜单项 用例是在树视图中选择一堆项目 然后为所有项目设置新的截止日期 由于菜单项是 Gtk Bin 因此我可以指定任何小部件来代替标签 然而 我似乎无法interact与小部件 如果我单击菜单上
  • 在 Elasticsearch 中将字符串的默认映射更改为“未分析”

    在我的系统中 数据的插入始终是通过 Logstash 通过 csv 文件完成的 我从不预先定义映射 但每当我输入一个字符串时 它总是被认为是analyzed 结果像这样的条目hello I am Sinha被分成hello I am Sin
  • 我无法在 WSL2 ON(ubuntu 终端)的 Windows 10 上使用 npm 命令

    我试图让 npm 命令起作用 但它不想这样做 正如我在标题中所说 我使用的是 Windows WSL2 我很久以前就已经用 Git Bash 安装了 Nodejs 但现在我需要它在我的 ubuntu 终端上工作 我该如何解决这个问题 我的U
  • Mono 3.0、Ubuntu 12.10、Nginx 和 ServiceStack

    根据 ServiceStack 网站的说法 使用 Mono 在 Linux 上启动和运行 ServiceStack 应该很容易 我已经在系统 Ubuntu 12 10 上安装了 nginx mono 3 0 和 fastcgi 我用过thi
  • 使用映射创建 Elasticsearch 索引

    我正在努力完成索引创建的简单任务 目标是使用分析器和字段映射创建索引 当我使用分析器创建索引时 我可以通过分析 api 调用与分析器对话 但是当我添加映射信息时 创建索引调用失败 并显示 未找到字段 field 的分析器 analyzer1
  • Ruby:在 Ubuntu 上安装 rmagick

    我正在尝试在 Ubuntu 10 04 上安装 RMagick 看起来here https stackoverflow com questions 1482823 is there an easy way to install rmagic
  • 包含 Elasticsearch 中的查询或部分匹配

    我正在寻找一个 amend 这个词 它可能在数据中以 amending amendment 甚至 amend 的形式出现 搜索此类单词的最佳方法是什么 我知道通配符可以实现这一点 但由于我的代码的其他部分 我被限制不使用它 有哪些不同的方式
  • 查看graphml文件

    我最近发现了一个 graphml 文件 但不知道如何从命令行打开它 我需要安装一些东西才能在 ubuntu 中从命令行查看此类文件吗 我尝试谷歌但找不到与此主题相关的任何结果 Graphml 是标准文件格式图表 yED 编辑器 http w
  • 当我尝试在 .bashrc 中添加命令时出现命令未找到消息

    我问了一个问题如何在 bash shell 中编写漂亮优雅的 linux 命令 https stackoverflow com q 19720095 80353 当我尝试该建议时 我收到以下错误消息 Sorry command not fo
  • 创建反应应用程序:npm 错误!解析“...”附近时 JSON 输入意外结束

    描述错误 npx create react app my app不适合我 我试过npm cache clean force但我一次又一次地遇到同样的错误 重现步骤 npm cache clean force npm npx create r
  • 如何更新与elasticsearch中的查询匹配的多个文档

    我的文档最初只包含 url 已分析 和 respsize 未分析 字段 我想更新与 url 匹配的文档并添加新字段 类别 我是说 首先doc1 url http stackoverflow com users 4005632 mehmet
  • PHP 通过 SSL 连接到 MS SQL

    我想要实现的目标非常简单 我想通过安全连接从 PHP 脚本连接到外部 MS SQL 数据库 然而 这已被证明是有问题的 到目前为止 经过三个小时的研究 我不知所措 客户端的平台是Ubuntu 这意味着我无法使用SQLSRV 安全连接已经在不
  • 当 Jenkins 在 Ubuntu 上作为守护进程运行时,如何为 Jenkins 提供更多堆空间?

    我的 Jenkins 作业内存不足 给java lang OutOfMemoryError构建日志中的消息 但我使用了 Ubuntu 包管理器 aptitude or apt get安装 Jenkins 我不知道在哪里可以更改分配给 Jen
  • nginx 获取静态文件失败,返回 404

    我现在正在 ubuntu 12 上部署带有 nginx 和 Gunicorn 的 django 应用程序 我配置nginx虚拟主机文件如下 server listen 80 server name mydomain com access l
  • 如何获得完全黑暗的kibana?

    我从 kibana 开始 看到很多 kibana 的视觉效果与官方网站上不同的图片 我更喜欢它 但我找不到如何打开它 您可能认为我正在谈论黑色仪表板主题 但这并不完全是我想要的 在图片上我看到 kibana 似乎完全黑暗 甚至有不同的布局
  • Ubuntu 中的颜色选择器实用程序(颜色移液器)[关闭]

    就目前情况而言 这个问题不太适合我们的问答形式 我们希望答案得到事实 参考资料或专业知识的支持 但这个问题可能会引发辩论 争论 民意调查或扩展讨论 如果您觉得这个问题可以改进并可能重新开放 访问帮助中心 help reopen questi
  • 为什么将 Ubuntu 升级到 22.04 后 phpMyAdmin 停止工作?

    刚刚升级到 Ubuntu 22 04 现在我的 phpmyadmin 无法加载 我收到以下错误 解析错误 语法错误 usr share php Symfony Component DependencyInjection ContainerB
  • Qt - ubuntu中的串口名称

    我在 Ubuntu 上查找串行端口名称时遇到问题 如您所知 为了在 Windows 上读取串口 我们可以使用以下代码 serial gt setPortName com3 但是当我在 Ubuntu 上编译这段代码时 我无法使用这段代码 se

随机推荐