1、安装依赖关系

yum install -y curl policycoreutils-python openssh-server wget

2、关闭防火墙和Selinux

systemctl stop firewalldsetenforce 0(临时关闭)

3、安装Postfix以发送通知邮件

yum install postfix -ysystemctl start postfix

4、下载gitlab镜像

wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.0.0-ce.0.el7.x86_64.rpm

5、安装gitlab程序

rpm -i gitlab-ce-12.0.0-ce.0.el7.x86_64.rpm(时间稍微长一点)

6、修改gitlab配置指定域名或IP及端口

vim /etc/gitlab/gitlab.rb将external_url 'http://gitlab.exmple.com'

7、重新配置和启动gitlab

gitlab-ctl reconfigure(时间较长)gitlab-ctl restart提示 "ok: run:"表示启动成功

8、访问gitlab页面

访问自己定义的域名或IP地址加端口,首次登陆会提示修改密码

3f81a27f95a77482b5f3c0bd5ffdd072.png
Logo

更多推荐