当前位置: 首页 > news >正文

【OpenSearch】安装部署OpenSearch和OpenSearch-Dashboard

一、安装OpenSearch

1.禁用主机swap提高性能

sudo swapoff -a

2.增加OpenSearch可用的内存映射数量。

编辑sysctl配置文件
sudo vi /etc/sysctl.conf

在文件中添加一行来定义所需的值, 或者如果键存在,则更改值,然后保存您的更改。

vm.max_map_count=262144
使用sysctl重新加载内核参数
sudo sysctl -p
通过检查值来验证更改是否已应用
cat /proc/sys/vm/max_map_count

3.安装

a. 获取安装包
wget https://artifacts.opensearch.org/releases/bundle/opensearch/2.17.1/opensearch-2.17.1-linux-x64.tar.gz
b. 解压
tar zxvf opensearch-2.17.1-linux-x64.tar.gz -C /opt/
c.新建普通用户
useradd es
d.授权普通用户
chown -R es.es /opt/opensearch-2.17.1
e.切换用户并配置密码变量
su es
export OPENSEARCH_INITIAL_ADMIN_PASSWORD='OpenSearch!320'
f.执行安装脚本
/opt/opensearch-2.17.1/opensearch-tar-install.sh
g.编辑配置文件禁用ssl

编辑opensearch.yml配置文件

vi /opt/opensearch-2.17.1/config/opensearch.yml
node.name: node-1
plugins.security.ssl.http.enabled: false
h.重启OpenSearch
i.获取集群状态
curl -u 'admin:OpenSearch!320' http://127.0.0.1:9200
{"name" : "node-1","cluster_name" : "opensearch","cluster_uuid" : "w_5jLsJoTAGkOhANBu4NDQ","version" : {"distribution" : "opensearch","number" : "2.17.1","build_type" : "tar","build_hash" : "1893d20797e30110e5877170e44d42275ce5951e","build_date" : "2024-09-26T21:59:32.078798875Z","build_snapshot" : false,"lucene_version" : "9.11.1","minimum_wire_compatibility_version" : "7.10.0","minimum_index_compatibility_version" : "7.0.0"},"tagline" : "The OpenSearch Project: https://opensearch.org/"
}

二、安装OpenSearch-Dashboard

需要安装在Redhat8以上,glibc版本太低会启动不了

a. 获取安装包
wget https://artifacts.opensearch.org/releases/bundle/opensearch-dashboards/2.17.1/opensearch-dashboards-2.17.1-linux-x64.tar.gz
b. 解压
tar zxvf opensearch-dashboards-2.17.1-linux-x64.tar.gz -C /opt/
c.授权普通用户
chown -R es.es /opt/opensearch-dashboards-2.17.1
d.修改配置文件
vi /opt/opensearch-dashboards-2.17.1/config/opensearch_dashboards.yml
server.host: "192.168.113.165"
i18n.locale: "zh-CN"
opensearch.username: admin
opensearch.password: OpenSearch!320
e.启动OpenSearch-Dashboard
/opt/opensearch-dashboards-2.17.1/bin/opensearch-dashboards
f. 界面访问
http://192.168.113.165:5601
http://www.lryc.cn/news/476740.html

相关文章:

  • 【系统架构设计师】2023年真题论文: 论软件可靠性评价的设计与实现(包括和素材和论文)
  • 教程:使用 InterBase Express 访问数据库(二)
  • Windows密码的网络认证---基于挑战响应认证的NTLM协议
  • fpga 常量无法改变
  • 【HarmonyOS NEXT】如何给未知类型对象定义类型并使用递归打印所有的Key
  • RuoYi 样例框架运行步骤(测试项目自用,同学可自取)
  • Java进程CPU飙高排查
  • conda的对应环境下安装cuda11.0和对应的cudnn
  • 微服务透传日志traceId
  • 【自然语言处理与大模型】大模型(LLM)基础知识②
  • 新能源汽车的未来:车载电源与V2G技术的前景
  • Git 本地操作(2)
  • 项目管理软件:5款甘特图工具测评
  • Unreal5从入门到精通之如何在指定的显示器上运行UE程序
  • 【Spring MVC】DispatcherServlet 请求处理流程
  • 【优选算法】——二分查找!
  • leetcode hot100【LeetCode 300. 最长递增子序列】java实现
  • sql注入——靶场Less1
  • docker file容器化部署Jenkins(一)
  • ArkTS组件继承的高级用法
  • 第十二章 spring Boot+shiro权限管理
  • jmeter基础01-3_环境准备-Linux系统安装jdk
  • 数字证书的简单记录
  • ssm基于SSM的校内信息服务发布系统的设计与实现+vue
  • Java 教程简介
  • 【C/C++】【三种方法】模拟实现strlen
  • 外贸平台开发多语言处理的三种方式
  • 学习GCC
  • B2109 统计数字字符个数
  • springboot Lark扫码登录