在 Windows 上运行 OpenSearch Dashboards
按照以下步骤在 Windows 上安装 OpenSearch Dashboards。
请确保您已安装压缩工具。
-
要解压压缩包内容,请右键点击并选择 全部提取。
注意:某些版本的 Windows 操作系统限制文件路径长度。如果您在解压压缩包时遇到与路径长度相关的错误,请执行以下步骤以启用长路径支持
- 在任务栏上**开始**旁边的搜索框中输入
powershell
以打开 Powershell。 - 在 Powershell 中运行以下命令
Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled -Type DWORD -Value 1 -Force
- 重新启动您的计算机。
- 在任务栏上**开始**旁边的搜索框中输入
-
运行 OpenSearch Dashboards。
有两种运行 OpenSearch Dashboards 的方法
-
使用 Windows UI 运行批处理脚本
- 导航到您的 OpenSearch Dashboards 安装的顶层目录并打开
opensearch-dashboards-3.1.0
文件夹。 - 如果需要,修改位于
config
文件夹中的opensearch_dashboards.yml
文件,以更改默认的 OpenSearch Dashboards 设置。 - 打开
bin
文件夹,双击opensearch-dashboards.bat
文件运行批处理脚本。这会打开一个运行着 OpenSearch Dashboards 实例的命令提示符窗口。
- 导航到您的 OpenSearch Dashboards 安装的顶层目录并打开
-
从命令提示符或 Powershell 运行批处理脚本
- 在任务栏上**开始**旁边的搜索框中输入
cmd
以打开命令提示符,或输入powershell
以打开 Powershell。 - 切换到您的 OpenSearch Dashboards 安装的顶层目录。
cd \path\to\opensearch-dashboards-3.1.0
- 如果需要,修改
config\opensearch_dashboards.yml
。 - 运行批处理脚本以启动 OpenSearch Dashboards。
.\bin\opensearch-dashboards.bat
- 在任务栏上**开始**旁边的搜索框中输入
-
要停止 OpenSearch Dashboards,在命令提示符或 Powershell 中按下 Ctrl+C
,或者直接关闭命令提示符或 Powershell 窗口。