美文网首页
CentOS7 安装Gitlab

CentOS7 安装Gitlab

作者: 偏分武士 | 来源:发表于2019-06-11 17:06 被阅读0次

一、 安装依赖

  1. 安装依赖库
yum -y install policycoreutils-python openssh-server openssh-clients postfix
  1. 设置postfix开机自启,并启动,postfix支持gitlab发信功能
systemctl enable postfix && systemctl start postfix

二、 下载gitlab安装包

wget [https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm](https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm)
rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm

三、 配置启动gitlab

  1. 配置IP+端口号

vim /etc/gitlab/gitlab.rb

修改 external_url ‘http://localhost’为’http://192.168.48.128:8081

  1. 配置

  2. 重启配置,重启服务

gitlab-ctl reconfigure

gitlab-ctl restar

四、 配置CI

需要用管理员账号登录

配置构建附件大小限制,和附件保存时间

image.png

相关文章

网友评论

      本文标题:CentOS7 安装Gitlab

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