You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows PowerShell中./run-ab-platform.sh命令无法执行求助

解决Windows PowerShell中Airbyte启动脚本无法运行的问题

方法1:通过WSL执行脚本

Airbyte的启动脚本基于Linux shell编写,WSL是最适配的运行环境:

  • 若未安装WSL,在PowerShell中执行wsl --install完成Linux发行版(如Ubuntu)的安装与配置
  • 打开WSL终端,进入Airbyte项目目录(Windows路径需转为WSL格式,例:C盘下的项目路径为/mnt/c/xxx/airbyte)
  • 执行./run-ab-platform.sh启动脚本

方法2:使用Git Bash运行脚本

若已安装Git for Windows,其自带的Git Bash原生支持shell脚本:

  • 打开Git Bash,导航到Airbyte项目目录
  • 执行./run-ab-platform.sh即可正常启动容器集群

方法3:修改PowerShell的.sh文件关联

若需在PowerShell内直接运行,可修改系统文件关联:

  • 以管理员身份打开PowerShell,执行以下命令将.sh文件绑定到WSL执行:
    New-Item -Path "HKCU:\Software\Classes\sh_auto_file\shell\open\command" -Force
    Set-ItemProperty -Path "HKCU:\Software\Classes\sh_auto_file\shell\open\command" -Name "(Default)" -Value "wsl.exe '%1'"
    
  • 完成后在PowerShell中进入Airbyte目录,执行./run-ab-platform.sh即可运行脚本

额外验证项

  • 检查Docker Desktop的WSL集成是否启用:打开Docker设置,进入「Resources > WSL Integration」,勾选正在使用的Linux发行版
  • 若项目文件可能损坏,重新克隆项目:
    rm -rf airbyte
    git clone https://github.com/airbytehq/airbyte.git
    cd airbyte
    

内容的提问来源于stack exchange,提问作者RaulLeite

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.14 14:34:56