Linux: 搭建GitLab

搭建

#!/bin/sh

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 firewall-cmd --permanent --add-service=https
sudo systemctl reload firewalld

sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix

curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-13.2.9-ce.0.el7.x86_64.rpm

rpm -ivh gitlab-ce-13.2.9-ce.0.el7.x86_64.rpm --force

vi /etc/gitlab/gitlab.rb
# 设置好host
# external_url 'http://gitlab.local.com'

gitlab-ctl reconfigure

下载使用清华库

https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/?C=M&O=A 

1.关闭注册

管理员登入--顶部菜单设置--左侧菜单设置--Sign-up restrictions --去掉勾选--保存

2.添加用户

管理员登入--顶部菜单设置--右侧new user--保存即可

原文地址:https://www.cnblogs.com/xmai/p/13626813.html