gitlab installation----yum method

1.Official guidance address

https://gitlab.cn/install/#centos-7

2. Install and configure necessary dependencies

On CentOS 7, the following command will also open HTTP, HTTPS, and SSH access in the system firewall. This is an optional step and you can skip it if you plan to only access GitLab from your local network

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

3. Download the mirror source

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

4.yum installation

yum  -y  install  gitlab-ce

5. Configure host ip:port

vim /etc/gitlab/gitlab.rb

If no port is added, the default is 80
Insert image description here

6. Reload the configuration to take effect, and then restart the service

gitlab-ctl reconfigure
gitlab-ctl restart

7. Visit the page

Username: root
Password View command: cat /etc/gitlab/initial_root_password

Insert image description here

8. Set to Chinese after logging in

Insert image description here
Finally, refresh the page and you will see the Chinese page:
Insert image description here

Guess you like

Origin blog.csdn.net/weixin_44702984/article/details/131152675