Linux環境安裝GitLab

2021-08-18 10:31:44 字數 1082 閱讀 6454

gitlab是乙個用於倉庫管理系統的開源專案,實現乙個自託管的git專案倉庫,可通過web介面進行訪問公開的或者私人專案。

因公司需要,嘗試在伺服器上搭建gitlab,現在做記錄備註及分享。

//配置系統防火牆,把http和ssh埠開放.

我的伺服器是

vim  /etc/gitlab/gitlab.rb
指定訪問ip及埠用號。

儲存並退出,執行以下命令更新配置。

sudo gitlab-ctl reconfigure
瀏覽器輸入gitlab.rb檔案中指定的ip及埠

首次登入會提示修改使用者名稱及密碼。

容器環境安裝gitlab

編寫dockerfile檔案 from gitlab gitlab ce user root run git clone set time zone env tz asia shanghai run ln snf usr share zoneinfo asia shanghai etc localt...

Linux 環境部署 gitlab

一 安裝並配置必要的依賴關係 1.安裝ssh yum install y curl policycoreutils pythonopenssh server 2.將ssh服務設定成開機自啟動,安裝命令 sudo systemctl enable sshd 3.啟動ssh服務,安裝命令 sudo sy...

Linux 安裝gitlab 一 安裝篇

公司需要搭建gitlab供專案使用,沒辦法 只有我搭建了,在這裡記錄一下搭建的過程及遇到的問題 wget開啟防火牆和http訪問,依次執行下列命令 在執行sudo firewall cmd permanent add service http時候有可能出現firewalld is not runni...