Build a GIT Server on Windows Server 2008 R2

Source: Internet
Author: User
Tags how to install windows server 2008 r2 subdomain subdomain name

Bonobo Git Server is an open source GIT source code Server running on IIS6/7, MVC 3, and. net 4.0 platforms. The following describes how to install Windows Server 2008 R2:

1. Prepare the environment

MsysGit

TortoiseGIT

Install IIS 2008 on Windows Server 7.5 R2

Microsoft. NET Framework 4.0

ASP. net mvc 3

2. Download the Bonobo Git Server installation package and decompress it.

3. Download the 64-bit version of System. Data. SQLite to replace the dll file with the same name in the/bin/directory.

4. Copy the entire directory after extracting and replacing the dll file to the target path, but it is the default c: inetpubwwwroot Directory. You can also configure a git subdomain name separately, here I select the latter. Note: ASP should be selected for the application pool. NET v4.0

5. Set the App_Data directory permission to "full control". Right-click the directory and choose> Properties> Security> Edit

 

6. Open the browser and enter http: // localhost/Bonobo. git. server or a sub-domain added in step 5 (such as http://git.chiefleo.me/), log on as the default Administrator: user name-admin, password-admin

7. Specify the root directory of the code library in "Global Settings" and set the file system permissions for this directory (write permission is required)

8. Create a code library: Repositories-> Create New Repository-> enter information about the code library-> after creation, click the code library name, you can see the corresponding Git Repository Location. In the future, you can use this link to clone, pull, and push the code ~

GIT usage problem summary:

1. After bonobo git server is installed, access through http: // localhost/Bonobo. Git. Server or subdomain name. The page is blank.

Solution: refer to Step 5 above to set the App_Data directory permission to "full control"

2. When GIT pushes large files, an error message is displayed:

Pushing to http://git.chiefleo.me/Git.aspx/xxx
Fatal: protocol error: bad line length character: <! DO
Fatal: The remote end hung up unexpectedly
Error: RPC failed; result = 55, HTTP code = 200

Solution: open web. in <system. for web> nodes, set the maximum request length (maxRequestLength) to 102400000. under webServer> node, set the maximum allowed content length (maxAllowedContentLength) to 102400000. The related code is as follows:

The code is as follows: Copy code

<System. web>
<HttpRuntime maxRequestLength = "102400000"/>
...
</System. web>
<System. webServer>
...
<Security>
<RequestFiltering>
<RequestLimits maxAllowedContentLength = "102400000" type = "codeph" text = "/codeph"/>
</RequestFiltering>
</Security>
</System. webServer>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.