gitlab 搭建

1. 下载Github安装包

2、选择yum->el7

  • 注:el是Red Hat Enterprise Linux(EL)的缩写
  • EL6是Red Hat 6.x,CentOS 6.x和CloudLinux 6.x的下载
  • EL5是Red Hat 5.x,CentOS 5.x和CloudLinux 5.x的下载
  • EL7是Red Hat 7.x,CentOS 7.x和CloudLinux 7.x的下载

3. 安装rpm包

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

4. 重置Gitlab

gitlab-ctl reconfigure

5.重启

gitlab-ctl restart

6.开放端口

firewall-cmd --zone=public --add-port=8080/tcp --permanent

7.加载防火墙

firewall-cmd --reload

8.访问

9.修改端口

unicorn['port'] = 9300
gitlab_workhorse['auth_backend'] = "http://localhost:9300" 

10.访问

11.查看密码

cd /opt/gitlab/bin

开始初始化密码

sudo gitlab-rails console production

u.password='root'

确认密码

u.password_confirmation='root'

保存密码

u.save!

提示密码太短

重新设置

u.password='12345678'

没有确认密码直接保存

再次确认

u.password_confirmation='12345678'

保存

u.save!

11.登录

12.安装gitlab runner

12.1 下载

查看linux 版本信息

uname -srm

gitlab runner

12.2 创建runner用户
useradd --comment 'GitLab Runner' --create-home gitlab-runner --shell /bin/bash
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值