美文网首页
CentOS 7 环境搭建GitLab

CentOS 7 环境搭建GitLab

作者: KnightKK | 来源:发表于2018-05-03 20:02 被阅读0次

GitLab是一个基于 Web 的 Git 仓库管理工具,使用开源许可证。

官网:https://about.gitlab.com/

系统要求:

支持的发行版:UbuntuDebianCentOSopenSUSERed Hat Enterprise Linux(请使用CentOS的包),Scientific Linux(请使用CentOS的包),Oracle Linux(请使用CentOS的包)。

ruby 2.3+

mysqlPostgreSQL

git

Redis

CentOS 7环境下的搭建:

官网安装文档:https://about.gitlab.com/installation

1.安装并设置HTTP和SSH防火墙权限:

sudo yum install -y curl policycoreutils-python openssh-server

sudo systemctl enable sshd

sudo systemctl start sshd

sudo firewall-cmd --permanent --add-service=http

sudo systemctl reload firewalld

2.安装邮件服务器PostFix(可跳过,用SMTP服务器替代)

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

3.获取安装脚本,自行安装所有依赖包

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

4.安装GitLab

sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ee

EXTERNAL_URL为GitLab打开页面,最好设置成你的“服务器ip/gitlab”,如果此处不设置,后面需要修改ip地址

耐心等待,gitlab-ee包大约400+MB,安装需要空间2G+.

其他配置问题:

修改Gitlab Ip地址:

sudo gitlab-ctl stop unicorn

sudo gitlab-ctl stop sidekiq

vi /etc/gitlab/gitlab.rb

把配置文件中的external_url "http://gitlab.example.com"改为

external_url "http://服务器ip/gitlab"

其他更多配置都在这个文件里面,具体怎么配置见官网。

配置文件生效,这个过程需要一点时间:

sudo gitlab-ctl reconfigure

重启GitLab:

sudo gitlab-ctl restart

重启完成后在浏览器中输入:

服务器ip/gitlab

即可进入Gitlab首页,第一次进入会设置密码。搭建完成。

相关文章

  • 配置nginx服务器,不同的域名解析不同的端口

    参考: 【CentOS 7防火墙快速开放端口配置方法】 GitLab 管理员手册 Centos 7搭建Gitlab...

  • 搭建厂内前端体系

    搭建私有仓库:gitlab:https://about.gitlab.com/downloads/#centos7...

  • GitLab install

    CentOS7服务器上搭建Gitlab Gitlab如何搭建? 安装gitlab所需要的依赖sudo yum in...

  • CentOS 7 环境搭建GitLab

    GitLab是一个基于 Web 的 Git仓库管理工具,使用开源许可证。 官网:https://about.git...

  • Centos7.2搭建gitlab服务器

    一, 服务器快速搭建gitlab方法可以参考gitlab中文社区 的教程centos7安装gitlab:https...

  • 开发服务器搭建Gitlab

    根据公司要求手动搭建属于公司自己的gitlab服务器 开发机器环境 (CentOS 7.x): 下载安装: 配置 ...

  • Gitlab安装

    准备虚拟机环境 我这里使用的是VMWare14 、centos 7 64位的组合 搭建Gitlab服务器 一.安装...

  • gitlab汉化

    环境说明 系统CentOS:CentOS7 注意:如不清楚gitlab版本以及git,请不要操作,否则gitlab...

  • Gitlab Runner安装注册

    1. 环境 操作系统: Linux Centos7 gitlab-runner版本: 9.5.1 gitlab版本...

  • gitlab安装教程

    记录下gitlab搭建的过程以及这中间遇到的问题。 环境:centos7,cpu 1核,内存 1G,swap 1G...

网友评论

      本文标题:CentOS 7 环境搭建GitLab

      本文链接:https://www.haomeiwen.com/subject/tdblrftx.html