局域网git服务器搭建(基于win7 + bonobo git server)

时间:2023-03-09 17:28:37
局域网git服务器搭建(基于win7 + bonobo git server)
公司内网有一台win7系统的服务器. 准备在上面部署git后台, 用于内网项目版本管理.
搜索了相关资料后, 在根据公司环境, 决定采用win7 + bonobo git server + git的方式实现git后台.
1.准备安装程序
    Bonobo Git Server(最新版本) 下载地址https://bonobogitserver.com/  我的版本6.3.0是个zip文件
    Git-2.15.1.2-64-bit.exe 下载地址 https://git-scm.com/downloads
    TortoiseGit-2.5.0.0-64bit 下载地址 https://tortoisegit.org/
局域网git服务器搭建(基于win7 + bonobo git server)
2.安装Bonobo
    查阅了官网 需要系统环境Win7 sp1 + 和 .NetFramework 4.6+.
局域网git服务器搭建(基于win7 + bonobo git server)
    1.将windows 和.Net Framework更新后, 打开IIS7+.
    2.将Bonobo的zip文件解压到C:\inetpub\wwwroot\这个目录下, 会看到解压后的Bonobo.Git.Server目录
3.配置IIS
    1.修改权限
                  局域网git服务器搭建(基于win7 + bonobo git server)
        在Bonobo.Git.Server\App_Data目录上右键->属性->安全->编辑->选中IIS_IUSERS用户->勾上修改和写入->应用
    2.转换Bonobo.Git.Server目录成应用模式。在IIS管理器做如下配置:
          局域网git服务器搭建(基于win7 + bonobo git server)
        打开IIS管理界面,在默认网站下找到Bonobo.Git.Server文件夹.
        右键鼠标Bonobo.Git.Server文件夹,单击“转换成应用”项(Convert to Application)
    3.配置身份验证, 在IIS里设置如下.(有些默认的就是这样)
局域网git服务器搭建(基于win7 + bonobo git server)
    完成上述3步后, 就可以在浏览器中试着打开http://localhost/Bonobo.Git.Server.  顺利的话可以见到如下界面:
局域网git服务器搭建(基于win7 + bonobo git server)
    默认账号密码都是admin
4.配置Bonobo
    在浏览器中配置bonobo, 不啰嗦了, 见下图
局域网git服务器搭建(基于win7 + bonobo git server)
参考资料
[1] windows服务器上使用bonobo git server部署git服务器出现的问题及解决办法 https://www.xxling.com/blog/article/77.aspx