??#安裝GitLab wget https://packages./install/repositories/gitlab/gitlab-ce/script.rpm.sh sudo os=el dist=8 bash ./script.rpm.sh sudo EXTERNAL_URL="http://.xx.xx" yum install -y gitlab-ce #查啟動(dòng)狀態(tài),等待個(gè)二十來分鐘 gitlab-ctl tail #關(guān)閉防火墻 ?service firewalld stop # 查初始密碼,測試登錄,用戶名為root cat /etc/gitlab/initial_root_password #設(shè)置開機(jī)自啟動(dòng) systemctl enable gitlab-runsvdir.service #給gitlab配置ssl證書 vim /etc/gitlab/gitlab.rb external_url 'https://' 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 |
|