gitlab home
1.依賴軟件的安裝
yum -y install policycoreutils openssh-server openssh-clients postfix
image.png
2.設(shè)置postfix開機自啟、并啟動、postfix支持gitlab發(fā)短信功能
systemctl enable postfix && systemctl start postfix
image.png
3.下載GItlab安裝包
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
安裝
rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
image.png
4.修改Gitlab配置文件指定服務(wù)器IP和自定義端口
vim /etc/gitlab/gitlab.rb
image.png
5.重置并啟動gitlab
gitlab-ctl reconfigure
gitlab-ctl restart
6.關(guān)于Gitlab 訪問502的問題
由于線上還跑著Tomcat 所以機器的8080端口被占用
所以要更改指定unicorn端口
unicorn['port']=****
這一步我在第二步的時候配置已經(jīng)加了進去
最后就是開放gitlab首頁的端口號 配置安全組就可以了