gitlab安装

发布时间 2023-12-22 19:08:59作者: 卷叶小树

1.下载rpm包

地址:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M

2.安装依赖

yum -y install policycoreutils-python openssh-server
# 没有policycoreutils-python 安装 policycoreutils-python-utils
systemctl enable sshd
systemctl start sshd

3.安装gitlab的rpm包

**注意不要用yum安装,有坑

rpm -Uvh gitlab-ce-15.2.0-ce.0.el7.x86_64.rpm

4.启动gitlab

gitlab-ctl reconfigure
gitlab-ctl restart