Gitlab搭建

这里写目录标题

  • 1.Gitlab安装包下载
  • 2.Gitlab搭建步骤

1.Gitlab安装包下载

centos系统的下载地址: https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
找最新版去下载

2.Gitlab搭建步骤

## 安装wget命令
yum -y install wget
## 可以直接在机器下载 也可以将下载好的安装包直接放在路径下
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
gitlab-ce-15.7.8-ce.0.el7.x86_64.rpm
## 安装qu依赖
yum install policycoreutils-python
## 执行安装命令
rpm -i gitlab-ce-15.7.8-ce.0.el7.x86_64.rpm
## 修改配置文件(主要是external_url值)
vi /etc/gitlab/gitlab.rb
## 刷新配置
gitlab-ctl reconfigure
## 启动
gitlab-ctl restart
## 停止
gitlab-ctl stop

启动成功后可以直接在浏览器上访问external_url设置的地址。第一次登陆时用户名默认root,会提示用户设置密码,设置密码后才可以登录使用。

你可能感兴趣的:(gitlab,linux,centos)