directory
- Learning materials
- Gitlab profile
- Why learn Gitlab
- Install Gitlab (centos7)
- Gitlab.rb configuration file modification section
- Access results (set password page, default is root)
- Set to Chinese
Learning materials
- Official website: about.gitlab.com/
- Chinese document: www.bookstack.cn/read/gitlab…
- B standing video travel [captain] : www.bilibili.com/video/BV1pa…
- Gitlab. Rb configuration file: blog.csdn.net/t748588330/…
Gitlab profile
- Wikipedia: zh.wikipedia.org/wiki/GitLab
- Self-understanding: Continuous integration tools similar to Jekins
Why learn Gitlab
- The company’s project needs to use [no solution]. The leader hopes that the automated script to realize the test will automatically pull and run the test after the developer submits the code, and finally send the test results to the corresponding leader (Jenkins can also achieve this).
- So why learn: You learn what the company uses, and then use it. Knowledge is learned, experience is accumulated.
- Go, go, go
Install Gitlab (centos7)
#Open source software, tsinghua university mirror station: https://mirrors.tuna.tsinghua.edu.cn/
#1. Download the RPM package. If centos8 is used, change e17 to E18Wget HTTP: / / https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-12.9.0-ce.0.el7.x86_64.rpm#2. Install dependencies (https://www.keysou.com/?id=522) : yum install -y policycoreutils-python
#3. Decompress the RPM packageThe RPM - the ivh gitlab - ce - 12.9.0 - ce. 0. El7. X86_64. RPM
#4. Modify the configuration file
vi /etc/gitlab/gitlab.rb
#Will external_url'http://gitlab.example.com'Change the password to the host IP address and run the :wq command to save the changesExternal_url 'http://192.168.0.223' #5. Make the configuration file take effect (you can directly use the newly configured IP address to access the cloud server. The default IP address is http://192/168.0.223.) If the access fails, check whether port 80 is enabled and whether a security group is configured for the cloud server.
# firewall-cmd --zone=public --add-port=80/tcp --permanent Open port 80
# firewall-cmd --reload # restart firewall
gitlab-ctl reconfigure
#6. Common commands
#Start the
gitlab-ctl start
#state
gitlab-ctl status
#stop
gitlab-ctl stop
Copy the code
Gitlab.rb configuration file modification section
Access results (set password page, default is root)
Set to Chinese
- Click on the
Head position on the right
– >settings
- Click on the
Preferences
Scroll to the bottom and clickLocalization
The right of theEnglish
I can toggle. SelectSimplified Chinese
, click on theSave changes
We have to do is
- Back to the home page, it looks like this