废话不多说,直接开整
关闭防火墙:
systemctl stop firewalld
setenforce 0
安装依赖程序:
yum -y install curl openssh-server postfix wget
安装gitlab组件及汉化:
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.9.0-ce.0.el7.x86_64.rpm
软件包安装:
没有的可以到清华大学源下载软件包
yum -y localinstall gitlab-ce-14.9.0-ce.0.el7.x86_64.rpm
全局配置:
### 全局配置 ###
gitlab-ctl reconfigure
### 查看状态 ###
gitlab-ctl status
汉化(需要软件包,版本一致)
tar xf gitlab-11-2-stable-zh.tar.gz
cp -r /opt/gitlab/embedded/service/gitlab-rails{,.bak}
/bin/cp -r gitlab-11-2-stable-zh/* /opt/gitlab/embedded/service/gitlab-rai