CentOS7 安装Gitlab

一、 安装依赖

  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
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容