Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Centos7 install gitlab

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Close selinux

Sed-I "s/SELINUX=enforcing/SELINUX=disabled/g" / etc/selinux/config

Setenforce 0 turn off the firewall

Systemctl disable firewalld.service

Systemctl stop firewalld.service

Or set the firewall to allow access to port 80

Firewall-cmd-zone=public-add-port=80/tcp-permanent

Firewall-cmd-zone=public-add-port=80/udp-permanent

Firewall-cmd-reload downloads gitlab feeds

Curl-s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash

Install gitlab

Yum install gitlab-ce-12.4.2-ce.0.el7.x86_64

Optimize gitlab

Vim / etc/gitlab/gitlab.rb

External_url 'http://192.168.11.247' # I didn't build dns, just fill in ip

Unicorn ['worker_timeout'] = 60unicorn [' worker_processes'] = 2 # officially recommended cpu core plus 1unicorn ['worker_memory_limit_min'] = "200 * 1

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report