初次操作成功,記錄一下
1. 安裝依賴軟件
yum -y install policycoreutils openssh-server openssh-clients postfix
2.設置postfix開機自啟,並啟動,postfix支持gitlab發信功能
systemctl enable postfix && systemctl start postfix
3.下載gitlab安裝包,然后安裝
rpm -ivh gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
4.修改gitlab配置文件指定服務器ip和自定義端口 -->
更改gitlab默認端口
vim /etc/gitlab/gitlab.rb
修改內容:external_url 后改為自己的http://ip:端口 ; unicorn['port'] = 28080 修改 unicorn['port'] 端口
!注意,兩個端口不能一樣

5:
使用gitlab-ctl reconfigure 自動配置,並安裝數據庫,初始化信息,如下所示(第一次使用配置時間較長):
命令:gitlab-ctl reconfigure
6:
使用gitlab-ctl start 啟動gitlab服務。
命令:gitlab-ctl start
-
sudo gitlab-ctl stop --停止服務
-
sudo gitlab-ctl reconfigure --啟動服務
-
sudo gitlab-ctl start --啟動所有gitlab組件
7:在瀏覽器中輸入 http://ip:端口/ ,然后 change password: ,並使用root用戶登錄 即可 (后續動作根據提示操作)
