Link Search Menu Expand Document Documentation Menu

在 Windows 上运行 OpenSearch Dashboards

按照以下步骤在 Windows 上安装 OpenSearch Dashboards。

请确保您已安装压缩工具。

  1. 下载 opensearch-dashboards-3.1.0-windows-x64.zip 压缩包。

  2. 要解压压缩包内容,请右键点击并选择 全部提取

    注意:某些版本的 Windows 操作系统限制文件路径长度。如果您在解压压缩包时遇到与路径长度相关的错误,请执行以下步骤以启用长路径支持

    1. 在任务栏上**开始**旁边的搜索框中输入 powershell 以打开 Powershell。
    2. 在 Powershell 中运行以下命令
      Set-ItemProperty -Path HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled -Type DWORD -Value 1 -Force
      
    3. 重新启动您的计算机。
  3. 运行 OpenSearch Dashboards。

    有两种运行 OpenSearch Dashboards 的方法

    1. 使用 Windows UI 运行批处理脚本

      1. 导航到您的 OpenSearch Dashboards 安装的顶层目录并打开 opensearch-dashboards-3.1.0 文件夹。
      2. 如果需要,修改位于 config 文件夹中的 opensearch_dashboards.yml 文件,以更改默认的 OpenSearch Dashboards 设置。
      3. 打开 bin 文件夹,双击 opensearch-dashboards.bat 文件运行批处理脚本。这会打开一个运行着 OpenSearch Dashboards 实例的命令提示符窗口。
    2. 从命令提示符或 Powershell 运行批处理脚本

      1. 在任务栏上**开始**旁边的搜索框中输入 cmd 以打开命令提示符,或输入 powershell 以打开 Powershell。
      2. 切换到您的 OpenSearch Dashboards 安装的顶层目录。
        cd \path\to\opensearch-dashboards-3.1.0
        
      3. 如果需要,修改 config\opensearch_dashboards.yml
      4. 运行批处理脚本以启动 OpenSearch Dashboards。
        .\bin\opensearch-dashboards.bat
        

要停止 OpenSearch Dashboards,在命令提示符或 Powershell 中按下 Ctrl+C,或者直接关闭命令提示符或 Powershell 窗口。

剩余 350 字符

有问题?

想要贡献?