Gitlab Centos详细安装步骤

准备:
安装Postfix以发送邮件
yum install postfix

Gitlab Centos详细安装步骤

启动postfix
systemctl start postfix
将postfix服务设置成开机自启动
systemctl enable postfix 
下载gitlab镜像
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.5.7-ce.0.el7.x86_64.rpm

Gitlab Centos详细安装步骤

安装Gitlab
rpm -i gitlab-ce-10.5.7-ce.0.el7.x86_64.rpm

Gitlab Centos详细安装步骤

修改gitlab配置文件指定服务器ip和自定义端口:

参数:external_url
vi /etc/gitlab/gitlab.rb

Gitlab Centos详细安装步骤

重置GitLab
gitlab-ctl reconfigure

重启GitLab
gitlab-ctl restart

访问Gitlab,初始化管理员(root)密码,使用external_url即可

Gitlab Centos详细安装步骤
用root登录,输入刚刚的新密码

安装完毕