顺序执行curl -LO https://mirrors.tuna.tsinghua.edu.cn/gitlab-runner/yum/el7-x86_64/gitlab-runner-15.8.0-1.x86_64.rpm
rpm -ivh gitlab-runner-15.8.0-1.x86_64.rpm// 此时已经运行,需要更改目录
sudo systemctl stop gitlab-runner
gitlab-runner uninstall
gitlab-runner install --working-directory /home/runner-ws --user root
sudo systemctl daemon-reload
sudo systemctl restart gitlab-runner
查看运行状态
ps aux | grep gitlab-runner
sudo systemctl status gitlab-runner
参考:https://blog.csdn.net/u013488276/article/details/134012874
https://blog.csdn.net/m0_51510236/article/details/134874324
https://www.jianshu.com/p/e6363a02d437
若有收获,就点个赞吧