Centos下安装GitLab 12.2.0
安装技术依赖
sudo yum install -y curl policycoreutils-python openssh-server
启动ssh服务&设置为开机启动
sudo systemctl enable sshd
sudo systemctl start sshd
安装postfix
sudo yum install -y postfix
启动postfix并设置为开机启动
sudo systemctl enable postfix
sudo systemctl start postfix
安装防火墙
yum install firewalld systemd -y
启动防火墙
service firewalld start
开放ssh、http服务
sudo firewall-cmd --add-service=ssh --permanent
sudo firewall-cmd --add-service=http --permanent
重载防火墙规则
sudo firewall-cmd --reload
安装vim
yum install vim -y
yum -y install wget
安装GitLab
rpm -i gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm rpm -i gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
rpm -i gitlab-ce-12.2.0-ce.0.el7.x86_64.rpm
修改URL配置
vim /etc/gitlab/gitlab.rb
配置重新生效
gitlab-ctl reconfigure
gitlab-ctl restart