Install GitLab ce tutorial under cloud server CentOS

Table of Contents

1. Purchase a server

2. Change to Alibaba Cloud image source (optional)

3. Installation of related dependencies

4.gitlab ce installation


1. Purchase a server

Huawei Cloud:   https://www.huaweicloud.com/

SSH remote login ssh [email protected]

2. Change to Alibaba Cloud image source (optional)

Backup: mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

Download: wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo  

(Note: download the version corresponding to the server CentOS 7)

清除缓存: yum clean all

生存缓存: yum makecache

3. Installation of related dependencies


sudo yum install -y curl policycoreutils-python openssh-server

sudo systemctl enable sshd

sudo systemctl start sshd


sudo yum install postfix

sudo systemctl enable postfix

sudo systemctl start postfix

4.gitlab ce installation

sudo vi /etc/yum.repos.d/gitlab-ce.repo, modify the content of the configuration file as follows:

[gitlab-ce]
name=Gitlab CE Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el$releasever/
gpgcheck=0
enabled=1

yum makecache

sudo EXTERNAL_URL="http:// xxx.xxx.xxx.xxx "yum install -y gitlab-ce, replace the address with the public network ip

Access ip

 

 

 

Guess you like

Origin blog.csdn.net/qq_40602000/article/details/108021738