1 # Linux x86-64 2 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd64 3 4 # Linux x86 5 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-386 6 7 # Linux arm 8 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-arm
1 chmod +x /usr/local/bin/gitlab-runner 2 3 curl -sSL https://get.docker.com/ | sh 4 5 useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash 6 7 gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner 8 9 gitlab-runner start
1 #注册runner 2 gitlab-runner register 3 gitlab-runner restart