[root@VM-2-3-centos ~]# cat /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
yum repolist
yum install gitlab-ce git -y
vim /etc/gitlab/gitlab.rb
external_url 'http://172.16.2.3'
启动组件
gitlab-ctl start
启动服务
gitlab-ctl reconfigure
查看初始密码:yiQixKxuZY9TKm55+dru+bCqFVQAV7QdsxdRVyAajKI=
[root@VM-2-3-centos ~]# cat /etc/gitlab/initial_root_password
# WARNING: This value is valid only in the following conditions
# 1. If provided manually (either via `GITLAB_ROOT_PASSWORD` environment variable or via `gitlab_rails['initial_root_password']` setting in `gitlab.rb`, it was provided before database was seeded for the first time (usually, the first reconfigure run).
# 2. Password hasn't been changed manually, either via UI or via command line.
#
# If the password shown here doesn't work, you must reset the admin password following https://docs.gitlab.com/ee/security/reset_user_password.html#reset-your-root-password.
Password: yiQixKxuZY9TKm55+dru+bCqFVQAV7QdsxdRVyAajKI=
# NOTE: This file will be automatically deleted in the first reconfigure run after 24 hours.
选择简体中文保存