entOS7安装gitlab测试,参考地址https://about.gitlab.com/installation/#centos-7
安装依赖
sudo yum install -y curl policycoreutils openssh-server openssh-clients
sudo yum install firewalld
sudo systemctl start firewalld
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
获取并安装
curl -sS https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
sudo yum install -y gitlab-ce
也可以先上传rpm安装包并进行安装
rpm -i ****.rpm
配置并启动
vi /etc/gitlab/gitlab.rb
根据个人需要修改配置
sudo gitlab-ctl reconfigure
附:docker下安装gitlab
yum install docker
docker pull gitlab/gitlab-ce
docker run -d -P --name gitlab --restart always gitlab/gitlab-ce gitlab/gitlab-ce