Powershell 使用介绍

0 Preface/Foreword

0.1 参考文档

Starting Windows PowerShell - PowerShell | Microsoft Learn

1 Powershell 介绍

2 命令介绍 

2.1 新建文件夹 

New-Item -Path 'C:\GitLab-Runner' -ItemType Directory 

2.2 切换路径 

cd 'C:\GitLab-Runner' 

2.3 下载文件 

 Invoke-WebRequest -Uri "https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-windows-amd64.exe"   -OutFile "gitlab-runner.exe"

2.4 安装文件

.\gitlab-runner.exe install 

2.5 运行文件 

.\gitlab-runner.exe start 

 针对gitlab-runner,注册 runner。

./gitlab-runner.exe register --url https://git.$COMPANY_WEBSITE --registration-token $REGISTRATION_TOKEN

相关推荐

  1. Powershell 使用介绍

    2024-07-22 15:36:02       20 阅读
  2. PowerShell数组

    2024-07-22 15:36:02       32 阅读
  3. powerShell相关

    2024-07-22 15:36:02       15 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-22 15:36:02       52 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-22 15:36:02       54 阅读
  3. 在Django里面运行非项目文件

    2024-07-22 15:36:02       45 阅读
  4. Python语言-面向对象

    2024-07-22 15:36:02       55 阅读

热门阅读

  1. 开发日志:OpenSSL 信息泄露漏洞

    2024-07-22 15:36:02       16 阅读
  2. IOS七层模型对应的网络协议和物理设备

    2024-07-22 15:36:02       16 阅读
  3. 【HarmonyOS】网络连接 - Http 请求数据

    2024-07-22 15:36:02       20 阅读
  4. C#中的Func

    2024-07-22 15:36:02       15 阅读
  5. vscode anaconda jupyternotebook R Python配置

    2024-07-22 15:36:02       18 阅读
  6. 英语(二)-汇总

    2024-07-22 15:36:02       18 阅读
  7. 哪些系统需要进行等级保护

    2024-07-22 15:36:02       19 阅读
  8. oops使用笔记

    2024-07-22 15:36:02       15 阅读
  9. CDN绕过

    2024-07-22 15:36:02       17 阅读
  10. C#中的Action

    2024-07-22 15:36:02       18 阅读
  11. CPU工作原理

    2024-07-22 15:36:02       20 阅读