Gitlab构建分布式版本控制系统

时间:2023-12-11 09:32:26

一 安装依赖

1.sudo yum install curl policycoreutils openssh-server openssh-clients

2.sudo systemctl enable sshd

3.sudo systemctl start sshd

4.sudo yum install postfix

5.sudo systemctl enable postfix

6.sudo systemctl start postfix

7.sudo  systemctl stop firewalld

8.sudo systemctl disable firewalld

9.sudo  setenforce 0

二 安装gitlab包

1.curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash   添加gitlab yum源

2.sudo yum install gitlab-ce  安装gitlab

三 配置启动

sudo gitlab-ctl reconfigure  自动配置数据库 

四 访问gitlab

1.浏览器中输入ip