首页 > 其他 > 详细

GitLab服务部署

时间:2019-08-06 03:35:16      阅读:123      评论:0      收藏:0      [点我收藏+]
系统环境:
CentOS 7.6
防火墙 关闭
selinux 关闭

官网地址:
https://about.gitlab.com/install/#centos7

下载rpm包 【可以忽略,本人推荐用的是yum安装】:
wget https://packages.gitlab.com/gitlab/gitlab-ce/packages/el/7/gitlab-ce-12.1.3-ce.0.el7.x86_64.rpm/download.rpm

安装和配置必要的依赖关系
yum install -y curl policycoreutils-python openssh-server

systemctl enable sshd 开机自启动sshd
systemctl start sshd 开启sshd

安装邮箱服务
yum install postfix
systemctl enable postfix
systemctl start postfix

下载GitLab 官方yum源
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash

更新yum库
yum makecache

安装GitLab
yum install -y gitlab-ee

安装好之后会出现《GitLab标致》代表安装成功
技术分享图片

自动配置所需的网站程序和数据库程序(过程耗时稍长)
gitlab-ctl reconfigure

打开PC浏览器 输入其服务器的IP进去Git html页面
点击"寄存器"按钮 注册一个用户,然后登陆

GitLab服务部署

原文:https://blog.51cto.com/kangxi/2426747

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!