1. 程式人生 > 其它 >CentOS 7.5環境下安裝配置GitLab

CentOS 7.5環境下安裝配置GitLab

1. 安裝依賴軟體 yum -y install policycoreutils openssh-server openssh-clients postfix 2.設定postfix開機自啟,並啟動,postfix支援gitlab發信功能 systemctl enable postfix && systemctl start postfix 3.下載gitlab安裝包,然後安裝 centos 6系統的下載地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el6 centos 7系統的下載地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7 此處建議安裝最新版本,我測試安裝時的最新版本為:gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
下載rpm包並安裝: wget http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm 4.修改gitlab配置檔案指定伺服器ip和自定義埠
退出並儲存 ps:此處設定的埠不能被佔用,我使用的是8099埠,並在防火牆設定開放相對應得埠。 5.重置並啟動GitLab 執行以下命令 gitlab-ctl reconfigure gitlab-ctl restart 提示“ok: run:”表示啟動成功,如下: 6.訪問 GitLab頁面,地址為配置檔案中配置的IP+埠號 http://192.168.31.101:8099/  7.第一次登入需要修改密碼 初始賬戶: root 密碼: 5iveL!fe

 

 8.登入成功