手把手記錄Gitlab最新版本安裝全程


CE版本和EE版本區別

GitLab Community Edition(CE)為社區免費版,是開放源碼的,項目地址:https://gitlab.com/rluna-gitlab/gitlab-ce
GitLab Enterprise Edition(EE)為企業版,免費試用30天,提供更多的功能和服務。

本次安裝使用Community Edition(CE)社區版,環境為Ubuntu 20.04

CE版本官網鏈接:

https://about.gitlab.com/install/?version=ce

CE版本安裝

本次以Ubuntu為例進行安裝

安裝和配置必要的依賴項

# 更新
sudo apt-get update
# 安裝依賴
sudo apt-get install -y curl openssh-server ca-certificates tzdata
# 安裝Postfix發送通知電子郵件
sudo apt-get install -y postfix

添加GitLab軟件包存儲庫

curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

安裝GitLab軟件包

sudo apt-get install gitlab-ce

使用瀏覽器登錄

# 啟動你的GitLab服務
sudo gitlab-ctl reconfigure

瀏覽器輸入IP地址登錄Gitlab

比如我的本地IP地址為:http://10.100.70.112/,首次登錄會自動跳轉到重置初始密碼界面

設置完密碼使用root賬號登錄

至此,gitlab本地環境搭建完成

更多其他系統安裝步驟請參考官方文檔:

Ubuntu:https://about.gitlab.com/install/?version=ce#ubuntu
Debian:https://about.gitlab.com/install/?version=ce#debian
CentOS 8:https://about.gitlab.com/install/?version=ce#centos-8
CentOS 7:https://about.gitlab.com/install/?version=ce#centos-7
CentOS 6:https://about.gitlab.com/install/?version=ce#centos-6
SUSE Linux Enterprise:https://about.gitlab.com/install/?version=ce#opensuse-leap-15-1
Raspberry Pi OS:https://about.gitlab.com/install/?version=ce#raspberry-pi-os


歡迎來跟博主討論自動化有關的問題。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM