CentOS7 安装Gitlab

2019-06-11  本文已影响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
上一篇下一篇

猜你喜欢

热点阅读