gitLab安装

安装依赖包 (ssh、http)

 yum install curl policycoreutils openssh-server openssh-clients
 systemctl enable sshd
 systemctl start sshd
 firewall-cmd --permanent --add-service=http
 firewall-cmd --permanent --add-service=https
systemctl reload firewalld

安装 Postfix(邮件)(可选)

yum install postfix
systemctl enable postfix
 systemctl start postfix

配置gitLab 源镜像

curl -fsSL https://packages.gitlab.cn/repository/raw/scripts/setup.sh | /bin/bash

下载安装gitLab

sudo EXTERNAL_URL="https://gitlab.example.com" yum install -y gitlab-jh

查看初始化密码

 cat /etc/gitlab/initial_root_password

配置 GitLab

编辑 /etc/gitlab/gitlab.rb 文件,修改 external_url 为你的 GitLab 地址,例如:

vi /etc/gitlab/gitlab.rb
external_url 'http://192.168.109.128:9090' # 

你可能感兴趣的:(gitlab,运维)