6,gitlab 的搭建

1、配置yum源

vim /etc/yum.repos.d/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

2、更新本地yum缓存
sudo yum makecache

3、安装
yum install -y curl policycoreutils openssh-server openssh-clients libsemanage-static libsemanage-devel
systemctl enable sshd
systemctl start sshd
yum install -y postfix
systemctl enable postfix
systemctl start postfix
firewall-cmd --permanent --add-service=http
systemctl reload firewalld
yum install -y gitlab-ce
配置并启动
gitlab-ctl reconfigure
sshkey 中:
public  key  是锁
private key(密钥) 是钥匙
 
 

 

posted @ 2020-10-25 18:00  pwcc  阅读(106)  评论(0)    收藏  举报