gitlab-runner无法启动,升级gitlab-runner

平时gitlab-runner正常运行时升级需要停服务

一、停止服务

sudo gitlab-runner stop

二、下载新版本并设置执行权限

若通过https下载出现问题,可以通过http下载

sudo wget -O /usr/local/bin/gitlab-runner http://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-ci-multi-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-ci-multi-runner-linux-amd64
sudo chmod +x /usr/local/bin/gitlab-runner

三、启动服务

sudo gitlab-runner start

gitlab-runner又正常运行了!

参考文章升级

你可能感兴趣的:(测试经验借鉴)