1 # Linux x86-642 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-amd643 4 # Linux x865 sudo wget -O /usr/local/bin/gitlab-runner https://gitlab-runner-downloads.s3.amazonaws.com/latest/binaries/gitlab-runner-linux-3866 7 # Linux arm8 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-runner2 3 curl -sSL https://get.docker.com/ | sh4 5 useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash6 7 gitlab-runner install --user=gitlab-runner --working-directory=/home/gitlab-runner8 9 gitlab-runner start
1 #注册runner2 gitlab-runner register3 gitlab-runner restart