0
点赞
收藏
分享

微信扫一扫

Gitlab CE 版本安装

吴wuwu 2023-03-03 阅读 60

一、安装版本

# 163 repo
下载repo文件
wget http://mirrors.163.com/.help/CentOS7-Base-163.repo

备份并替换系统的repo文件
cp CentOS7-Base-163.repo /etc/yum.repos.d/
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS7-Base-163.repo CentOS-Base.repo

执行yum源更新命令
yum clean all
yum makecache
yum update

#gitlab-ce 13.3.9 下载,我司用的12.x版
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.3.9-ce.0.el7.x86_64.rpm

二、安装、配置、启动

yum -y install policycoreutils openssh-server openssh-clients postfix

# postfix 安装
systemctl enable postfix
systemctl start postfix

#rpm 安装
yum localinstall gitlab-ce-13.3.9-ce.0.el7.x86_64.rpm -y

Gitlab CE 版本安装_git

[root@gitlab-vm ~]# cp /etc/gitlab/gitlab.rb /etc/gitlab/gitlab.rb_back
[root@gitlab-vm ~]# vim /etc/gitlab/gitlab.rb

注意端口使用自司规划端口,此处默认80

Gitlab CE 版本安装_git_02


#初始化,时长因vm配置而异多则5分钟
[root@gitlab-vm ~]# gitlab-ctl reconfigure

Gitlab CE 版本安装_git_03

启动并配置新密码
gitlab-ctl start

Gitlab CE 版本安装_gitlab ce_04


举报

相关推荐

0 条评论