zoukankan      html  css  js  c++  java
  • 关于Bonobo Git Server的安装

    1、关于安装

    参考官网:https://bonobogitserver.com/

    实际上就是在IIS上搭建一个MVC程序。安装教程:https://bonobogitserver.com/install/

    注意,新版6.2.1以及以上版本,需要Internet Information Services 7 或以上;需要.net版本4.6或以上。

    2、关于.net版本的安装

    部分server2012的低版本无法安装net版本4.6或以上,解决方案:

    先下载安装windows补丁KB2919442;
    然后安装clearcompressionflag.exe(不是必须的,如果一些补丁安装不成功需要清理时可执行此程序) ;
    之后安装KB2919355;
    最后安装.net4.6(这是bonobo6.2.1及以上需要的环境)

    以上补丁自行互联网搜索即可。

    3、相关错误解决

    error: RPC failed; result=22, HTTP code = 404

    遇到这个错误,修改配置文件C:initpubwwwrootBonobo.Git.ServerWeb.config (注意,如果是根据官方教程安装的,以上为要修改的配置文件的路径,即Bonobo.Git.Server目录下面,而非其他的web.config)

    将以下两处的值调大即可。

    <httpRuntime maxRequestLength="999999999" /> 以及 <requestLimits maxAllowedContentLength="999999999" /> 具体如下:
     <system.web>
        <globalization enableClientBasedCulture="true" uiCulture="auto" />
        <customErrors mode="On" defaultRedirect="Home/Error" />
        <httpRuntime maxRequestLength="999999999" />
        <authentication mode="None" />
        <compilation debug="true" targetFramework="4.6" />
            <identity impersonate="false" />
      </system.web>
      <system.webServer>
        <modules runAllManagedModulesForAllRequests="true">
          <remove name="RoleManager" />
        </modules>
        <handlers>
          <remove name="UrlRoutingHandler" />
        </handlers>
        <security>
          <requestFiltering>
            <requestLimits maxAllowedContentLength="999999999" />
            <fileExtensions allowUnlisted="true">
              <clear />
            </fileExtensions>
            <hiddenSegments>
              <clear />
            </hiddenSegments>
          </requestFiltering>
        </security>
        <staticContent>
          <remove fileExtension=".woff2" />
          <mimeMap fileExtension=".woff2" mimeType="font/woff2" />
        </staticContent>
      </system.webServer>

    如果修改之后依然报 error: RPC failed; result=22, HTTP code = 404
    使用 git bash 执行以下命令:

    git config http.postBuffer 524288000   #Set to 500MB

    注意这里的git bash是客户端,即在哪个地方使用git访问Bonobo Git Server,而不是Bonobo 所在的服务器。
    参考
    https://stackoverflow.com/questions/2702731/git-fails-when-pushing-commit-to-github
    http://www.cnblogs.com/68681395/p/3645374.html

  • 相关阅读:
    Ubuntu+Mac使用飞鸽传书iptux进行互通
    Mac下查看端口占用
    Ubuntu查看端口占用情况
    Ubuntu桌面卡死时的处理
    Bluefish
    响应式Spring Cloud初探
    go
    INSERT ... ON DUPLICATE KEY UPDATE产生death lock死锁原理
    现在的Unix时间戳(Unix timestamp)
    Android 一款Loading动画的实现思路
  • 原文地址:https://www.cnblogs.com/learn21cn/p/7522856.html
Copyright © 2011-2022 走看看