GitLab 安装方法
生活随笔
收集整理的這篇文章主要介紹了
GitLab 安装方法
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1. 安裝并配置必要的依賴關系
如果你想使用 Postfix 發送郵件,請在安裝過程中根據提示選擇 'Internet Site'。 你也可以用 Sendmail 或者?配置一個自定義的 SMTP 服務?并?把它作為一個 SMTP 服務器。
在 CentOS 系統上,下面的命令將會打開系統防火墻 HTTP 和 SSH 的訪問。
sudo yum install curl openssh-server openssh-clients postfix cronie sudo service postfix start sudo chkconfig postfix on sudo lokkit -s http -s ssh如果你不太習慣使用命令管道的方式安裝鏡像倉庫,你可以在這里找到?完整的安裝腳本?或者?選擇系統對應的安裝包?使用下面的命令手動安裝。
curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6/gitlab-ce-XXX.rpm rpm -i gitlab-ce-XXX.rpm <button aria-label="Copy to clipboard" class="btn copy-btn js-copy-btn" data-clipboard-text="" curl="" -ljo="" https:="" mirrors.tuna.tsinghua.edu.cn="" gitlab-ce="" yum="" el6="" gitlab-ce-xxx.rpm"="" data-placement="top" data-toggle="tooltip" title="" type="button" data-original-title="Copy to clipboard" style="color: rgb(107, 79, 187); font-style: inherit; font-variant: inherit; font-stretch: inherit; font-size: 14px; line-height: 1.42857; font-family: inherit; margin: 5px; overflow: visible; cursor: pointer; vertical-align: middle; touch-action: manipulation; background-image: none; border-width: 1px; border-style: solid; border-color: transparent; white-space: nowrap; padding: 5px; border-radius: 4px; user-select: none;">3. 配置并啟動 GitLab
sudo gitlab-ctl reconfigure4. 通過瀏覽器訪問上一步配置的域名
第一次訪問 GitLab,系統會重定向 url 到重置密碼的頁面,你需要輸入初始化管理員賬號的密碼。 設置完成后,系統會重定向到登錄界面,你就可以使用剛才輸入的密碼登錄系統了。
系統默認的管理員賬號為?root, 登錄系統后,你可以修改管理員賬號為自己喜歡的賬號。
來源:https://www.gitlab.com.cn/installation/#centos-6
總結
以上是生活随笔為你收集整理的GitLab 安装方法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 使用git建立远程仓库,让别人git c
- 下一篇: centos安装gitlab详解-201