centos7 搭建 gitlab

(如果不知道gitlab或者github的,请先百度一下,这个是安装教程)

官网教程:https://about.gitlab.com/install/#centos-7

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

邮件服务器你自己看着办
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

2、配gitlab仓库,下载安装包
配仓库
curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.rpm.sh | sudo bash
装gitlab-ee
yum install -y gitlab-ee
配置,注意,要先去配置一下,配置文件去看文档吧
官方文档是https://docs.gitlab.com/omnibus/README.html#installation-and-configuration-using-omnibus-package
[[email protected] ~]# egrep -v ‘^#|^$’ /etc/gitlab/gitlab.rb
external_url ‘http://192.168.31.33’
unicorn[‘worker_processes’] = 2
完成配置
gitlab-ctl reconfigure

3、启动gitlab
gitlab-ctl restart

以后如果你重新配置了gitlab,记得reconfigure和restart

 

此条目发表在gitlab分类目录,贴了标签。将固定链接加入收藏夹。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注