- 首先推荐电脑上安装chocolatey,方式如下:
管理员运行cmd,将下面内容粘进去然后回车并等待提示安装完成:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
- 标题中curl和jq需要单独安装,运行.sh文件需要git,也要单独安装。使用chocolatey可以像CentOS上yum一样安装软件,但需要注意C盘空间。
命令如下:
choco install --yes git jq curl
以上都提示完毕后双击.sh文件或右键打开方式选择刚安装好的git即可。