1.安裝依賴環境
[root@gitlab ~]# yum install curl openssh-server postfix cronie
2.下載安裝GitLab包
我安裝的環境是Red Hat Enterprise Linux Server release 7.4 (Maipo)
GitLab下載地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
以上是清華大學開源軟件鏡像站,我是從這下載對于的gitlab的安裝包
[root@gitlab ~]# ?wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.6.2-ce.0.el7.x86_64.rpm
[root@gitlab ~]# rpm -Uvh gitlab-ce-10.6.2-ce.0.el7.x86_64.rpm
[root@gitlab ~]# vim ?/etc/gitlab/gitlab.rb
將文本13行的改成你自己定義的服務器ip和自定義端口。我這里是改成了我本機的ip地址。external_url 'http://192.168.8.5'
保存并退出,執行以下命令更新配置。
[root@gitlab ~]# gitlab-ctl reconfigure
?
3、訪問GitLab
[root@gitlab ~]# firefox http://192.168.8.5
瀏覽器輸入gitlab.rb文件中指定的ip及端口,我實驗用來默認的80端口,
首先你需要輸入你的新的密碼。默認的用戶名是root,密碼則是你自己添加的密碼。
?
?