美文网首页
Linux(centos7)搭建gitlab

Linux(centos7)搭建gitlab

作者: 不给起这个名字 | 来源:发表于2018-11-16 14:51 被阅读0次

https://about.gitlab.com/install/#centos-7  官方安装gitlab的方法    

这里安装社区版

先执行官方文档的第一步  

防火墙打开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

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

第二步  社区版gitlab安装 https://packages.gitlab.com/gitlab/gitlab-ce  也可以先把rpm下载好https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7

这里使用在线下载

wget --content-disposition https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm/download.rpm

下载完成

安装rpm

rpm -ivh  gitlab-ce-11.4.5-ce.0.el7.x86_64.rpm

安装成功

修改gitlab的访问地址。

vim /etc/gitlab/gitlab.rb

http://192.168.79.129  (默认端口80)

保存之后更新配置

gitlab-ctl reconfigure (这一步需要等个几分钟)

gitlab-ctl restart

这里就完成了

注意 linux的内存要配置成4G以上,不然linux会很卡,访问不了

直接访问http://192.168.79.129就能进到页面

相关文章

  • GitLab install

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

  • Gitlab Runner安装注册

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

  • Centos7.2搭建gitlab服务器

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

  • Linux(centos7)搭建gitlab

    https://about.gitlab.com/install/#centos-7 官方安装gitlab的方法 ...

  • maven

    本地导入gitlab仓库 搭建环境 搭建maven环境Linux的alpine版的镜像adminie_jenkin...

  • Gitlab搭建指南

    1.本文目标 在centOS7系统上成功装上Gitlab 2.准备工作 需要自己搭建CentOS7系统,不管是在服...

  • 搭建自己的gitlab服务

    搭建一个 gitlab 私服只需如下4步:1.准备linux环境2.安装gitlab3.配置gitlab4.启动g...

  • Gitlab搭建,配置邮件服务

    Gitlab 在Centos7 搭建 用docker方式安装: 等待数分钟后,容器服务器全部起来,访问http:/...

  • Linux搭建gitlab

    由于上一篇搭建的git服务器,进行权限控制时很不方便,决定重新搭建gitlab作为管理项目工具,有web页面操作起...

  • Linux搭建GitLab

    先查看系统Linux版本,命令: cat /etc/redhat-release 建议使用CentOS Linux...

网友评论

      本文标题:Linux(centos7)搭建gitlab

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