centOS 7 gitlab安装

https://www.cnblogs.com/chenfool/p/7689438.html

配置阿里巴巴 yum 源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
重建yum 的缓存

yum clean all
yum makecache

https://www.cnblogs.com/Gyoung/p/7729095.html

1.打开系统防火墙 HTTP 和 SSH 的访问,安装postfix

复制代码
sudo yum install curl policycoreutils policycoreutils-python openssh-server openssh-clients
sudo systemctl enable sshd
sudo systemctl start sshd
sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
sudo firewall-cmd --permanent --add-service=http
sudo systemctl reload firewalld
复制代码
2.下载gitlab rpm安装文件

crul下载:

> curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
> sudo yum install gitlab-ce-10.1.0-ce.0.el7.x86_64
rpm下载

curl -LJO https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.1.0-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-10.1.0-ce.0.el7.x86_64.rpm
如果下载失败,可以到https://packages.gitlab.com/gitlab/gitlab-ce手动下载,再用 rpm的方式自己安装

出现 It looks like… 表示安装成功!

3.配置 gitlab 

vim /etc/gitlab/gitlab.rb
把external_url改成部署机器的域名或者IP地址。

4.对GitLab进行重配置 (这一步也是启动 GitLab)

gitlab-ctl reconfigure

 汉化版的安装方法参考:https://www.cnblogs.com/chenfool/p/7689438.html

官方各历史版本下载:https://packages.gitlab.com/gitlab/ 

该软件内存占用很大,建议4G以上内存,不然可能会让服务器直接挂掉。

安装完不要在后台添加用户,由用户自己去注册页面注册,后台分配权限就行了,不用配置邮件服务器。

原文地址:https://www.cnblogs.com/gavinyyb/p/9912571.html