Windows platform git server build

Source: Internet
Author: User
Tags port number

First step: Download Java

Step two: Install Java. Installation steps are no longer detailed.

Step three: Configure the Java environment variables.

Right-click the "Computer" => "=>" Advanced system settings => "advanced" => "Environment variables" => "System variables".

New:

Variable name: java_home

Variable Value: D:/program Files (x86)/java/jdk1.6.0_21 "specifically according to your own installation path, my is installed in D disk"

2. NEW:

Variable name: CLASSPATH

Variable value:.; %java_home%/lib/dt.jar;%java_home%/lib/tools.jar

3. Add: Locate the path variable and select Edit. Add%java_home%/bin;%java_home%/jre/bin to the end of the variable value.

Fourth step: Verify that Java is installed successfully.

Open the Command Window => enter cmd => OK.

In the Command window, enter the Java command: Javac, carriage return, if the following message appears, the installation was successful.

Fifth step: Download Gitblit.

Sixth step: Unzip the downloaded compressed package, no need to install.

Step Seventh: Create a folder for storing data.

More information: www.cgzhw.com game Development Network, the best game Programming development technology website.

Step Eighth: Configure the Gitblit.properties file.

Locate the Gitblit.properties file under the data file in the Git directory and Notepad opens.

2. Locate the Git.repositoriesfolder (repository path), and assign to the seventh step to create a good file directory.

3. Find Server.httpport, set the port number of the HTTP protocol

4. Locate the Server.httpbindinterface and set the IP address of the server. Set up your server IP here.

5. Find Server.httpsbindinterface, set to localhost

6. Save and close the file.

Step Nineth: Run the gitblit.cmd batch file.

Locate the Gitblit.cmd file in the Bitblit directory and double-click.

2. The running result is as follows, the operation is successful.

Tenth step: Open in the browser, you can now use Gitblit, the default username password are: admin.

Step 11th: Set up Windows service to start Gitblit.

In the Gitblit directory, locate the Installservice.cmd file.

2. Open with Notepad.

3. Change ARCH

32-bit system: SET arch=x86

64-bit system: SET ARCH=AMD64

4. Add CD as program directory

SET cd=d:/git/gitblit-1.6.0 (your actual directory)

5. Modify the startup parameters in the Startparams, give it to the empty.

6. Save and close the file.

12th step: Start Gitblit in Windows service mode.

Double-click the Installservice.cmd file (run as Administrator) in the Gitblit directory.

2. Under the service management of the server, you can see the existing Gitblit service.

3. In peacetime use, keep this service is to start the state on it.

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.