安装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

yum install gitlab-ce -y

配置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

密码:修改的密码

安装完成!!!

猜你喜欢

转载自blog.csdn.net/duan737174646/article/details/85062954