linux centos安装搭建gitlab服务器

linux centos安装搭建gitlab服务器

gitlab 是一个用于仓库管理系统的开源项目,使用Git作为代码管理工具,并在此基础上搭建起来的web服务。

官网文档: https://about.gitlab.com/installation/#centos-7?version=ce

本人环境: 

1)linux centos7.4 64位腾讯云服务器 2G内存 CPU1核  1M宽带

2)虚拟机上的 linux centos7.5 64位 

说明 :
gitlab 版本分ee与ce , ee指企业版, ce是社区版

# 
# 资源地址 
# https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-11.0.0-ce.0.el7.x86_64.rpm
# https://about.gitlab.com/installation/#centos-7

# 开始
curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install gitlab-ce-11.0.0-ce.0.el7.x86_64

# 安装依赖
sudo yum install -y curl policycoreutils-python openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld

#安装邮件服务器
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

# 执行script.rpm.sh
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
# sudo EXTERNAL_URL="http://gitlab.example.com" yum install -y gitlab-ce

# 配置 配置成功后, 会自动启动gitlab 
gitlab-ctl reconfigure


# 启动gitlab
gitlab-ctl start

# 关闭gitlab
# gitlab-ctl stop




预览下搭建好的gitlab web端:





/END


猜你喜欢

转载自blog.csdn.net/Dong_Alex/article/details/80827702
今日推荐