在CentOS上安装GitLab插件主要有以下两种方法:
sudo yum update -y。gitlab-rake:sudo curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash,然后sudo yum install gitlab-rake。redis_monitoring插件:sudo gitlab-rake gitlab:plugins:install redis_monitoring。/etc/gitlab/gitlab.rb。sudo gitlab-ctl restart。sudo yum install -y curl policycoreutils-python openssh-server。git clone https://github.com/my-plugin.git /opt/gitlab/embedded/service/plugins/my-plugin。cd /opt/gitlab/embedded/service/plugins/my-plugin,然后bundle install --path vendor/bundle。sudo gitlab-ctl reconfigure。安装前要确保插件与GitLab版本兼容,生产环境中建议先在测试环境测试。