分布式版本控制系统之gitlab-简单安装

分布式版本控制系统之gitlab-简单安装

GitLab 是一个用于仓库管理系统的开源项目,实现一个自托管的Git项目仓库,可通过Web界面进行访问公开的或者私人项目。功能和GitHub类似。

本文才有rpm包的形式安装gitlab,当然也可以才有源码编译安装,过程稍有复杂,安装过程官网介绍比较详细,选择对应系统,对应版本安装即可。

1.安装gitlab依赖的基础环境:

yum install curl policycoreutils openssh-server openssh-clients -y
systemctl enable sshd
systemctl start sshd
yum install postfix
systemctl enable postfix
systemctl start postfix
systemctl start firewalld
firewall-cmd --permanent --add-service=http
systemctl reload firewalld

2.添加GitLab包服务和安装包

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

yum install gitlab-ce -y

3.启动GitLab

启动之前查看下80端口有没有被占用。

gitlab-ctl reconfigure

注:空间和内容要留够,不然起不来。

4.访问gitlab

首次访问gitlab,系统会让你重新设置管理员的密码,设置成功后会返回登录界面。
默认的管理员账号是root,默认的密码是 5iveL!fe,如果你想更改默认管理员账号,请输入上面设置的新密码登录系统后修改帐号名。
http://10.20.23.222/

之后的操作和在GitHub上操作类似。


猜你喜欢

转载自blog.csdn.net/sfdst/article/details/77200004
今日推荐