gitlab - sudo gitlab-runner result command not found 但 gitlab-runner 只能运行

标签 gitlab centos7 gitlab-ci gitlab-ci-runner gitlab-omnibus

我的环境是 Centos 7,我刚刚安装了 gitlab-runner,当我以安装 gitlab-runner 的用户身份运行此命令时(不是以 root 身份)

sudo gitlab-runner register

这将导致找不到命令,但如果我在没有 sudo 的情况下运行

gitlab-runner register

它运行但显示这条线

WARNING: Running in user-mode.
WARNING: The user-mode requires you to manually start builds processing:
WARNING: $ gitlab-runner run
WARNING: Use sudo for system-mode:
WARNING: $ sudo gitlab-runner...

有人知道怎么解决吗

最佳答案

我在 this instruction 之后使用 yum install 卸载并安装了 gitlab-runner

关于gitlab - sudo gitlab-runner result command not found 但 gitlab-runner 只能运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57389143/

相关文章:

python - 奇点容器+Python+PyTorch : Why does 'import torch' work on Arch Linux host but fails on Centos 7 host?

installation - 在centos7上安装ImageMagick的问题

r - libtinfow.so.6 : cannot open shared object file: No such file or directory

docker - gitlab runner 完成构建后部署

docker - 合并请求合并后自动运行管道清理

Gitlab CI : Cannot find output of build stage

azure - 使用 PowerShell 将代码从 GitLab 存储库部署到 Azure Web App

gitlab - Webhook 执行错误 : Hook executed successfully but returned HTTP 400 missing_text_or_fallback_or_attachments

git - 在 Git 中,创建新分支时包含 <start-point> 的值(value)是什么?

亚搏体育appGitlab CI/CD : Schedule only for a particular job and exclude it from the pipeline