zoukankan      html  css  js  c++  java
  • gitlab搭建

    概述

    gitlab是完全私有的git项目,github是公共的git项目。

     

    服务器环境

    centos6

     

    部署命令

    yum install curl policycoreutils-python openssh-server
    yum -y install postfix
    systemctl start postfix
    systemctl enable postfix
    systemctl status postfix

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


    firewall-cmd --permanent --add-service=80/tcp
    firewall-cmd --permanent --add-service=443/tcp
    systemctl reload firewalld

    重新配置

    gitlab-ctl reconfigure

     

    启动和关闭

    gitlab-ctl start

    gitlab-ctl stop

    gitlab-ctl restart


    gitlab-ctl show-config


    常用日志
    tailf /var/log/gitlab/gitlab-rails/production.log


    报错分析
    问题:Can't verify CSRF token authenticity

    解决:无法通过nginx+gitlab方式转发,涉及跨域问题。解决方案,直接用tcp端口转发(nginx或者iptables都可以),放弃http转发

  • 相关阅读:
    MicroStation VBA 操作提示
    MicroStation VBA 可视化界面
    VBA 操作数字
    MicroStation VBA基础
    C#问题
    C#复习⑨(附带C#参考答案仅限参考)
    C#复习⑧
    C#复习⑦
    C#复习⑥
    C#复习⑤
  • 原文地址:https://www.cnblogs.com/geektcp/p/10802296.html
Copyright © 2011-2022 走看看