gitlab管理平臺搭建

前言

本篇文章主要介紹的是gitlab代碼管理平臺的搭建。

GitLab 是一個用於倉庫管理系統的開源項目,使用 Git 作爲代碼管理工具,並在此
基礎上搭建起來的 web 服務, 提供代碼託管、提交審覈和問題跟蹤服務, 對於軟件工程質
量管理非常重要。 由烏克蘭程序員 DmitriyZaporozhets 和 ValerySizov 開發,它使用
Ruby 語言寫成。後來一些部分用 Go 語言重寫。

1.安裝依賴:

sudo yum install curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld

2.下載gitlab:

curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.0.2-ce.0.el7.x86_64.rpm

安裝 rpm -i gitlab-ce-12.0.2-ce.0.el7.x86_64.rpm

根據你的需要安裝需要的版本,如果服務器配置比較低就安裝低點的版本。
自己可以在https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ 中挑選

3.配置外部訪問的ip及端口

vim /etc/gitlab/gitlab.rb

4.加載配置後,重啓gitlab

gitlab-ctl reconfigure 這一步會持續幾分鐘
gitlab-ctl restart

5.訪問第三步配置的ip和端口

注 無法打開網頁的原因可能是防火牆開啓,且未開放80端口
不配置端口時默認端口爲80

6.登陸後修改界面語言爲中文



設置完成後,按F5刷新頁面生效。

CSDN:https://blog.csdn.net/qq_27682773
簡書:https://www.jianshu.com/u/e99381e6886e
博客園:https://www.cnblogs.com/lixianguo
個人博客:https://www.lxgblog.com

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章