致命:无法启动 gitlab-runner:访问被拒绝
fatal: failed to start gitlab-runner: access is denied
当我尝试安装 gitlab runner 时,我收到以下错误消息:
Microsoft Windows (Version 18618362778)
(c) 2019 Microsoft Corporation. All rights reserved.
C:\gitlab runner>gitlab-runner.exe install
Runtime platform arch=i386 windows pid-11732 revision=4c96e5ad version-12.9.6
FATAL: Failed to install gitlab-runner: Access is denied.
C:\gitlab_runner
我需要知道如何解决这个问题以及为什么会出现这个问题。
之前出现过类似错误:gitlab-org/gitlab-runner issue 1265 ("Failed to install gitlab-runner service on Windows")
这导致 merge request 223 "Windows installation, added a precision on the install command",这与您的情况不直接相关。
但同样的问题包括:
Since gitlab-ci-multi-runner install is intended to be run as Administrator, it seems like the GitLab runner could add this privilege to the account also.
因此请确保您首先在使用管理员帐户启动的 CMD 控制台中执行此命令。
在 Windows 上安装 GitLab Runner 的文档在这里:https://docs.gitlab.com/runner/install/windows.html
第 3 步是打开提升的 PowerShell 会话(使用 "Run as Administrator" 启动 PowerShell)。
转到 cmd --> 以“管理员”身份右键单击
输入命令为
gitlab-runner.exe 安装
当我尝试安装 gitlab runner 时,我收到以下错误消息:
Microsoft Windows (Version 18618362778)
(c) 2019 Microsoft Corporation. All rights reserved.
C:\gitlab runner>gitlab-runner.exe install
Runtime platform arch=i386 windows pid-11732 revision=4c96e5ad version-12.9.6
FATAL: Failed to install gitlab-runner: Access is denied.
C:\gitlab_runner
我需要知道如何解决这个问题以及为什么会出现这个问题。
之前出现过类似错误:gitlab-org/gitlab-runner issue 1265 ("Failed to install gitlab-runner service on Windows")
这导致 merge request 223 "Windows installation, added a precision on the install command",这与您的情况不直接相关。
但同样的问题包括:
Since gitlab-ci-multi-runner install is intended to be run as Administrator, it seems like the GitLab runner could add this privilege to the account also.
因此请确保您首先在使用管理员帐户启动的 CMD 控制台中执行此命令。
在 Windows 上安装 GitLab Runner 的文档在这里:https://docs.gitlab.com/runner/install/windows.html
第 3 步是打开提升的 PowerShell 会话(使用 "Run as Administrator" 启动 PowerShell)。
转到 cmd --> 以“管理员”身份右键单击 输入命令为 gitlab-runner.exe 安装