(1)停止gitlab runner 服务
gitlab-runner stop
如:
[root@iZbp1flzt6x7pxmxfhmxeeZ flask_app]# gitlab-runner stop
Runtime platform arch=amd64 os=linux pid=11800 revision=4b9e985a version=14.4.0
[root@iZbp1flzt6x7pxmxfhmxeeZ flask_app]#
(2)取消随机启动
chkconfig gitlab-runner off
如:
[root@iZbp1flzt6x7pxmxfhmxeeZ flask_app]# chkconfig gitlab-runner off
Note: Forwarding request to 'systemctl disable gitlab-runner.service'.
Removed symlink /etc/systemd/system/multi-user.target.wants/gitlab-runner.service.
[root@iZbp1flzt6x7pxmxfhmxeeZ flask_app]#
(3)卸载gitlab runner
gitlab-runner uninstall
如:
[root@iZbp1flzt6x7pxmxfhmxeeZ flask_app]# gitlab-runner uninstall
Runtime platform arch=amd64 os=linux pid=12270 revision=4b9e985a version=14.4.0
[root@iZbp1flzt6x7pxmxfhmxeeZ flask_app]#
(4)清理文件
rm -rf /etc/gitlab-runner
rm -rf /usr/local/bin/gitlab-runner
rm -rf /usr/bin/gitlab-runner
rm -rf /etc/sudoers.d/gitlab-runner
(5)删除用户
userdel -r gitlab-runner