gitlab管理平台搭建

前言

本篇文章主要介绍的是gitlab代码管理平台的搭建。

GitLab 是一个用于仓库管理系统的开源项目,使用 Git 作为代码管理工具,并在此基础上搭建起来的 web 服务, 提供代码托管、提交审核和问题跟踪服务, 对于软件工程质量管理非常重要。由乌克兰程序员 DmitriyZaporozhets 和 ValerySizov 开发,它使用Ruby 语言写成。后来一些部分用 Go 语言重写。

1.安装依赖:

sudo yum install curl policycoreutils openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld

2.下载gitlab:

curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.0.2-ce.0.el7.x86_64.rpm

安装 rpm -i gitlab-ce-12.0.2-ce.0.el7.x86_64.rpm

根据你的需要安装需要的版本,如果服务器配置比较低就安装低点的版本。
自己可以在https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/ 中挑选

3.配置外部访问的ip及端口

vim /etc/gitlab/gitlab.rb

4.加载配置后,重启gitlab

gitlab-ctl reconfigure 这一步会持续几分钟

gitlab-ctl restart

5.访问第三步配置的ip和端口

注 无法打开网页的原因可能是防火墙开启,且未开放80端口
不配置端口时默认端口为80

6.登陆后修改界面语言为中文



设置完成后,按F5刷新页面生效。

CSDN:https://blog.csdn.net/qq_27682773
简书:https://www.jianshu.com/u/e99381e6886e
博客园:https://www.cnblogs.com/lixianguo
个人博客:https://www.lxgblog.com

原文地址:https://www.cnblogs.com/lixianguo/p/12518470.html