美文网首页
GITLAB服务器搭建

GITLAB服务器搭建

作者: 乌龟壳里的童话世界 | 来源:发表于2019-01-07 10:58 被阅读0次

搭建环境:linux服务器,CentOS7

一、在线安装

1. 安装依赖服务

sudo yum install -y curl policycoreutils-python openssh-server

sudo systemctl enable sshd

sudo systemctl start sshd

sudo firewall-cmd --permanent --add-service=http

sudo systemctl reload firewalld

2.安装postfix发送通知邮件(可以跳过)

sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

3. 安装gitlab

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

sudo yum install gitlab-ce #自动安装最新版

sudo yum install gitlab-ce-x.x.x    #安装指定版本

二、包安装

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

三、修改配置

vim /etc/gitlab/gitlab.rb

四、配置重新生效&重启服务

sudo gitlab-ctl reconfigure

sudo gitlab-ctl restart

相关文章

网友评论

      本文标题:GITLAB服务器搭建

      本文链接:https://www.haomeiwen.com/subject/etfhrqtx.html