centos7部署gitlab-ce-12.10.11

gitlab-ce

gitlab是一個用於倉庫管理系統的開源項目。使用git做爲代碼管理工具,並在此基礎上搭建起來的web服務。可經過web界面進行訪問公開的或者私人的項目。它擁有與github相似的功能,可以瀏覽源代碼,管理源代碼缺陷和註釋。能夠管理團隊對倉庫的訪問,它很是易於爲瀏覽器提交過的版本提供一個文件歷史庫。

環境配置

OS CentOS Linux release 7.7.1908
gitlab-ce gitlab-ce-12.10.11-ce.0.el7.x86_64.rpm

初始化環境

官方下載地址:https://packages.gitlab.com/gitlab/gitlab-ce
初始化服務器腳本: curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
下載gitlab-ce:  wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-12.10.11-ce.0.el7.x86_64.rpm/download.rpm
    安裝: yum install -y gitlab-ce-12.10.11-ce.0.el7.x86_64.rpm

gitlab環境

gitlab主要配置文件和存放目錄
/etc/gitlab/gitlab.rb #gitlab主要配置文件
/opt/gitlab #程序安裝位置
/var/opt/gitlab  #gitlab數據存儲位置和服務配置文件
/var/opt/gitlab/gitlab-data #gitlab數據項目存儲
gitlab服務構成
run: alertmanager
run: gitaly
run: gitlab-exporter
run: gitlab-workhorse
run: grafana: #grafana 效果展現
run: logrotate: 
run: nginx:  #web服務
run: node-exporter:  #prometheus的node監控腳本
run: postgres-exporter: #prometheus的postgresq監控腳本
run: postgresql:  #postgres數據庫
run: prometheus:  #服務器監控
run: redis:       #redis緩存服務
run: redis-exporter:  #prometheus的redis監控腳本
run: sidekiq: 
run: unicorn:

設置 訪問域名

[root@server3 ~]# cat /etc/gitlab/gitlab.rb
  external_url 'http://192.168.31.179'

重載配置文件

[root@server3 ~]# gitlab-ctl  reconfigure

訪問測試 http://192.168.31.179

初始化密碼

centos7部署gitlab-ce-12.10.11

登陸gitlab

centos7部署gitlab-ce-12.10.11

漢化操做

centos7部署gitlab-ce-12.10.11
centos7部署gitlab-ce-12.10.11
centos7部署gitlab-ce-12.10.11

再次刷新便可

相關文章
相關標籤/搜索