#装配GitLab
wget https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh sudo os=el dist=8 bash ./script.rpm.sh sudo EXTERNAL_URL="http://xxx.xxx.xx.xx" yum install -y gitlab-ce
#查启动景色,恭候个二十来分钟
gitlab-ctl tail
#关闭防火墙
service firewalld stop
# 查启动密码,测试登录,用户名为root
cat /etc/gitlab/initial_root_password
#修复开机自启动
systemctl enable gitlab-runsvdir.service
#给gitlab建设ssl文凭
vim /etc/gitlab/gitlab.rb
external_url 'https://your-domain.com' nginx['redirect_http_to_https'] = true nginx['ssl_certificate'] = "/etc/gitlab/ssl/server.crt" nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/server.key"
gitlab-ctl reconfigure
gitlab-ctl restart
本站仅提供存储行状,总共骨子均由用户发布,如发现存害或侵权骨子,请点击举报。