RELATEED CONSULTING
相关咨询
选择下列产品马上在线沟通
服务时间:8:30-17:00
你可能遇到了下面的问题
关闭右侧工具栏

新闻中心

这里有您想知道的互联网营销解决方案
centos7安装gitlab-创新互联
  1. 关闭selinux
    sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
    setenforce 0
  2. 关闭防火墙
    systemctl disable firewalld.service
    systemctl stop firewalld.service
    或者设置防火墙允许80端口访问
    firewall-cmd --zone=public --add-port=80/tcp --permanent
    firewall-cmd --zone=public --add-port=80/udp --permanent
    firewall-cmd --reload
  3. 下载gitlab源
    curl -s https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
  4. 安装gitlab
    yum install gitlab-ce-12.4.2-ce.0.el7.x86_64

    按需开发可以根据自己的需求进行定制,网站设计、成都网站建设构思过程中功能建设理应排到主要部位公司网站设计、成都网站建设的运用实际效果公司网站制作网站建立与制做的实际意义
  5. 优化gitlab
    vim /etc/gitlab/gitlab.rb
    external_url 'http://192.168.11.247' #我没有搭建dns,直接填ip

    unicorn['worker_timeout'] = 60
    
    unicorn['worker_processes'] = 2               #官方建议cpu核数加1
    
    unicorn['worker_memory_limit_min'] = "200 * 1 << 20"
    
    unicorn['worker_memory_limit_max'] = "300 * 1 << 20"
    
    postgresql['shared_buffers'] = "256MB"
    
    postgresql['max_worker_processes'] = 8
  6. 启动gitlab
    校验: gitlab-ctl reconfigure
    启动: gitlab-ctl start

  7. 访问gitlab

    centos7安装gitlab

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


分享题目:centos7安装gitlab-创新互联
标题来源:http://sczitong.cn/article/ishdj.html