1.安装依赖包
[root@localhost home]# yum install -y curl policycoreutils-python openssh-server postfix vim wget git patch
2.在系统防火墙中打开HTTP和HTTPS,设置SSH、邮件开机启动
[root@localhost ~]# systemctl restart firewalld
[root@localhost ~]# firewall-cmd --permanent --add-service=http
[root@localhost ~]# firewall-cmd --permanent --add-service=https
[root@localhost ~]# systemctl reload firewalld
[root@localhost ~]# systemctl enable sshd
[root@localhost ~]# systemctl start sshd
[root@localhost ~]# systemctl enable postfix
[root@localhost ~]# systemctl start postfix
3.配置YUM源
[root@localhost home]# weget https://mirror.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
[root@localhost home]# vim /etc/yum.repos.d/gitlab.repo #清华大学开源软件镜像站
[gitlab]
name=gitlab
baseurl=https://mirrors.tuna.tsiighua.edu.cn/gitlab-ce/yum/el7/ #根据系统版本配置
repo_gpgcheck=0
gpgcheck=0
enabled=1
gpgkey=https://packages.gitlab.com/gpg.key
4.安装gitlab
[root@localhost home]# yum clean all
[root@localhost ho
gitlab本地部署
最新推荐文章于 2025-08-06 17:40:58 发布
