Linux: 搭建GitLab
2020-09-07 14:42 huoit 阅读(199) 评论(0) 编辑 收藏 举报搭建
#!/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--保存即可
1、如果您觉得阅读本文对您有帮助,请点一下“推荐”按钮,您的“推荐”将是我最大的写作动力!
2、欢迎各位转载,但是未经作者本人同意,转载文章请在文章页面明显位置标明作者和原文连接,否则保留追究法律责任的权利。
作者博客: http://www.cnblogs.com/xmai/