1、安装依赖
yum -y install policycoreutils openssh-server openssh-clients postfix
2、设置postfix开机自启,并启动,postfix支持gitlab发信功能
systemctl enable postfix && systemctl start postfix
3、下载gitlab安装包,然后安装
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.2-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-8.0.0-ce.0.el7.x86_64.rpm
4、修改gitlab配置文件指定服务器ip和自定义端口
vim /etc/gitlab/gitlab.rb
5、重置并启动GitLab
gitlab-ctl reconfigure gitlab-ctl restart
来源:oschina
链接:https://my.oschina.net/taony/blog/3223146