GitLab安装

1.GitLab简介

GitLab是一个用于仓库管理系统的开源项目。使用git作为代码管理工具,并在此基础上搭建起来的web服务。可通过web界面进行访问公开的或者私人项目。它拥有与GitHub类似的功能,能够浏览源代码,管理缺陷和注释。可以管理团队对仓库的访问,它非常易于浏览提交过的版本并提供一个文件历史库。团队成员可以利用内置的简单聊天程序(wall)进行交流。它还提供一个代码片段收集功能可以轻松实现代码复用。

常用的网站:

官网:https://about.gitlab.com/

国内镜像:https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/

安装环境:

1、CentOS7

2、2G(实验)8G(生产)

3、安装包:gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm

4、禁用防火墙,关闭selinux

2.GitLab安装

2.1.安装依赖

yum install curl policycoreutils openssh-server openssh-clients policycoreutils-python
systemctl enable sshd
systemctl start sshd
yum install postfix
systemctl enable postfix
systemctl start postfix

2.2.获取rpm安装包

cd /usr/local/src/
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.8.7-ce.0.el7.x86_64.rpm

2.3.安装

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

2.4.配置

修改配置文件:/etc/gitlab/gitlab.rb

修改external_url的地址为:http://本机内网ip

修改完主配置文件后,使用gitlab-ctl reconfigure重新配置gitlab

2.5.启动

重新配置gitlab后,在浏览器地址栏中输入http://本机内网ip

配置root用户的密码,完成后进入系统

posted on 2020-10-27 17:46  黄海彦架构师之路  阅读(259)  评论(0编辑  收藏  举报

导航