【半离线安装】
1、安装ssh
yum install -y curl policycoreutils-pythonopenssh-server
2、将SSH服务设置成开机自启动
systemctl enable sshd
systemctl start sshd
3、安装防火墙
yum install firewalld systemd -y
service firewalld start
systemctl reload firewalld
4、安装Postfix以发送通知邮件
yum install postfix
systemctl enable postfix
systemctl start postfix
5、下载GitLab
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-11.6.3-ce.0.el7.x86_64.rpm
6、安装gitlab
rpm -i gitlab-ce-11.6.3-ce.0.el7.x86_64.rpm
7、修改gitlab配置
vim /etc/gitlab/gitlab.rb
external_url ‘http://localhost:8888‘ --修改端口
8、启动
gitlab-ctl reconfigure
gitlab-ctl restart
--安装软件
rpm -i gitlab-ce-11.6.3-ce.0.el7.x86_64.rpm
--查看软件
rpm -qa | grep gitlab
--卸载软件
rpm -e gitlab-ce-11.6.3-ce.0.el7.x86_64.rpm
【在线安装】
原文:https://www.cnblogs.com/cuminbf/p/10263334.html