DevOps环境搭建

发布时间 2023-04-05 22:28:43作者: 石门口人

一、GitLab安装

1.下载安装包
wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-14.6.0-ce.0.el7.x86_64.rpm --no-check-certificate
2.安装
rpm -ivh gitlab-ce-14.6.0-ce.0.el7.x86_64.rpm

3.修改配置文件
# vim /etc/gitlab/gitlab.rb

external_url 'http://192.168.231.131'

4.初始化
gitlab-ctl reconfigure

  初始密码:Password stored to /etc/gitlab/initial_root_password