In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of Linux how to build GitLab, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this article on how to build GitLab in Linux. Let's take a look.
Linux build gitlab specific steps to log in to linux1 as root. First install related dependencies: sudo yum install-y curl policycoreutils-python openssh-server 2. Turn on SSH boot self-boot sudo systemctl enable sshd sudo systemctl start sshd3. Firewall permanently open http sudo firewall-cmd-- permanent-- add-service=http sudo systemctl reload firewalld (Note Firewall stop restart: systemctl start/stop/reload firewalld) 4. Install postfix, set postfix to boot automatically, and start. Postfix supports gitlab sending function.
Yum install postfixsystemctl enable postfix
Systemctl start postfix
Download gitlab:
Wget https://mirrors.tuna.tsinghua.edu.cn/gitlab-ce/yum/el7/gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
Installation (linux memory at least 2g officially recommended 4G memory when you configure linux memory): mkdir / usr/local/gitlab
Rpm-ivh gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm
Modify the server address and port of the gitlab configuration file. Configuration item: external_url, pay attention to the port occupation problem and the firewall opens port 8989:
Vi / etc/gitlab/gitlab.rb
# # GitLab URL # #! URL on which GitLab will be reachable. # #! For more details on configuring external_url see: # #! Https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab external_url 'http://192.168.81.129:8989'
Permanently open port 8989:
Firewall-cmd-permanent-add-port=8989/tcp
Restart the firewall, run the command: firewall-cmd-reload
To see if the port number is on, run the command: firewall-cmd-query-port=8989/tcp
Restart the gitlab profile
Gitlab-ctl reconfigure gitlab-ctl restart
The above two fulfillment realities are as follows:
Running handlers: Running handlers complete Chef Client finished, 362/515 resources updated in 04 minutes 18 seconds gitlab Reconfigured!
[root@hostuser gitlab] # gitlab-ctl restart ok: run: gitaly: (pid 26240) 1s ok: run: gitlab-monitor: (pid 26261) 0s ok: run: gitlab-workhorse: (pid 26264) 1s ok: run: logrotate: (pid 26314) 0s ok: run: nginx: (pid 26322) 1s ok: run: node-exporter: (pid 26334) 0s 0s ok: run: postgres-exporter: (pid 26341) 0s ok: run: postgresql: (pid 26350) 0s ok: run: prometheus : (pid 26359) 0s ok: run: redis: (pid 26375) 1s ok: run: redis-exporter: (pid 26379) 0s ok: run: sidekiq: (pid 26387) 0s ok: run: unicorn: (pid 26397) 0s
Go to the address bar of the page and click the ip:8989 you set.
Password at least 8 digits adminadmin recommended
Default user name root, enter password adminadmin
This is the end of the article on "how to build Linux GitLab". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to build Linux GitLab". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.