# For Debian/Ubuntu/Mint
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh | sudo bash
# For RHEL/CentOS/Fedora
curl -L https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.rpm.sh | sudo bash # For Debian/Ubuntu/Mint
sudo apt-get install gitlab-runner
# For RHEL/CentOS/Fedora
sudo yum install gitlab-runnersudo usermod -aG docker gitlab-runnersudo gitlab-runner register -n \
--url https://gitlab.exmaple.com \
--tag-list "ec2-shell,be" \
--registration-token abc1234567890dc \
--executor shell \
--description "backend runner"tag-list must match tags in .gitlab-ci.yml