安装gitlib-ce

Gitlib简介:

版本控制系统  gitlib github 

Gitlib-ce:社区版免费仓库, 自托管集代码托管、测试、部署于一体的开源仓库管理软件,可通过web界面进行访问公开的活私人的项目。

环境介绍:

操作系统:centos 7.4 64位 4U4G云主机

已经关闭firewalld和selinux防火墙 

# systemctl stop firewalld && systemctl disable firewalld

# sed -i "s/SELINUX=enforcing/SELINUX=disabled/"  /etc/selinux/config

安装依赖包:

yum install curl policycoreutils openssh-server openssh-clients postfix -y

systemctl enable postfix

systemctl start postfix

更换yum源:

vim /etc/yum.repos.d/gitlab_gitlab-ce.repo

【添加以下内容】

[gitlab-ce]
name=gitlab-ce
baseurl=http://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key

更新缓存:

yum makecache

安装Gitlib-ce

curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

sudo yum install gitlab-ce-11.6.0-ce.0.el7.x86_64

配置Gitlib:

vim  /etc/gitlab/gitlab.rb

配置并启动gitlib

gitlab-ctl reconfigure

 

可以使用gitlab-ctl管理gitlab,例如查看gitlab状态:

查看状态:gitlab-ctl status
停止:gitlab-ctl stop
开启:gitlab-ctl start
重启:gitlab-ctl restart
查看日志:gitlab-ctl tail 

登录gitlib

浏览器输入:http://164.52.44.210:8888/

第一次访问GitLab,系统会重定向页面到重定向到重置密码页面,你需要输入初始化管理员账号的密码,管理员的用户名为root,初始密码为5iveL!fe

更改完密码,会跳转到登录页面。

账号:root

密码:修改的密码

 

安装完成!!!

 

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

duan737174646

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值