欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 文旅 > 艺术 > Powershell 使用介绍

Powershell 使用介绍

2024/10/24 4:48:58 来源:https://blog.csdn.net/yanlaifan/article/details/140524811  浏览:    关键词: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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com