赞
踩
主机名 | IP地址 | 服务 | 系统版本 |
---|---|---|---|
cicd-gitlab | 192.168.122.186 | gitlab-ee (13.4.1) | CentOS7.4 |
[root@localhost ~]# hostnamectl --static set-hostname cicd-gitlab
[root@cicd-gitlab ~]# systemctl stop firewalld
[root@cicd-gitlab ~]# systemctl disable firewalld
[root@cicd-gitlab ~]# systemctl start postfix
[root@cicd-gitlab ~]# systemctl enable postfix
[root@cicd-gitlab ~]# sed -ri '/^SELINUX=/c SELINUX=disabled' /etc/selinux/config
[root@cicd-gitlab ~]# setenforce 0 # 临时关闭SELinux
[root@cicd-gitlab ~]# reboot
[root@cicd-gitlab ~]# vim /etc/hosts
192.168.122.186 gitlab.example.com
[root@cicd-gitlab ~]# yum install -y curl openssh-server openssh-clients postfix cronie policycoreutils-python
# gitlab-ce 10.x.x以后的版本需要依赖policycoreutils-python
[root@cicd-gitlab ~]# vim gitlab-ce.repo
[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1
[root@cicd-gitlab ~]# vim gitlab-ee.repo
[gitlab-ee]
name=Gitlab EE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el$releasever/
gpgcheck=0
enabled=1
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/
https://mirrors.tuna.tsinghua.edu.cn/gitlab-ee/yum/el7/
[root@cicd-gitlab ~]# yum -y install gitlab-ce # 自动安装最新版
[root@cicd-gitlab ~]# yum -y install gitlab-ce-x.x.x # 安装指定版本Gitlab
[root@cicd-gitlab ~]# ls #这里我们提前下好了最新版本的企业版的包,我们直接本地安装
anaconda-ks.cfg gitlab-ee-13.4.1-ee.0.el7.x86_64.rpm
[root@cicd-gitlab ~]#[root@cicd-gitlab ~]# yum localinstall gitlab-ee-13.4.1-ee.0.el7.x86_64.rpm
已加载插件:fastestmirror
正在检查 gitlab-ee-13.4.1-ee.0.el7.x86_64.rpm: gitlab-ee-13.4.1-ee.0.el7.x86_64
gitlab-ee-13.4.1-ee.0.el7.x86_64.rpm 将被安装
正在解决依赖关系
--> 正在检查事务
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。