(Rpm) GitBlit mounted

Turn: https://blog.csdn.net/qq_32599479/article/details/90748371

GitBlit installation of
this article is based on the Windows 10 system environment, installation and testing GitBlit, in order to build Git server on the Windows platform.

10 Windows
MyEclipse 10
jdk-8u181-Windows-x64
gitblit-1.8.0.zip
a build environment jdk
installation GitBlit, is the need jdk environment.

(1) official website to download jdk
jdk-8u181-Windows-x64-
(2) jdk installed
during installation omitted

(3) Configuration java environment variables
new variable JAVA_HOME environment
variable name: JAVA_HOME
variable value: C: \ Program Files \ Java \ jdk1.8.0_181 [to be configured according to jdk installation path]


New environment variable CLASSPATH
variable name: CLASSPATH
variable values:;.% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar;
% JAVA_HOME% \ lib \ dt.jar

Edit the PATH environment variable
to find the PATH variable, select Edit. The% JAVA_HOME% \ bin;% JAVA_HOME % \ jre \ bin added to the end of "variable value".

Jdk verify successful installation
in cmd command terminal, type the following command
Java -version
. 1
if the following screen appears, the installation is successful  

Second, download and install GitBlit
(1) official website to download GitBlit
gitblit-1.8.0.zip

 

 

 

Can be compressed (2) decompress downloaded, without having to install

 

 File (3) Create a folder for storing data

Create a folder D: \ GitRepository, please create a non-system disk, or there will be rights bug

 

 (4) configuration file defaults.properties

1. Locate the file in the data file defaults.properties in the Git directory and open.

 

 

2. Locate git.repositoriesFolder, assigned to the created file directory D: \ GitRepository

 

 3. Locate server.httpPort, set the http protocol port number

 

 4. Locate server.httpBindInterface, set the IP address of the server. Here you set your server IP

5. Find server.httpsBindInterface, set to localhost

 

 6. Modify Batch File file installService.cmd

 

 

 

 


Modify ARCH

32-bit systems: the ARCH the SET = the X86
64-bit systems: SET ARCH = amd64

Add a CD-bit program directory

SET CD=C:\gitblit-1.8.0

Modify StartParams in the startup parameters, to be empty

–StartParams="" ^

7. Start gitblit Service

 

 

8. In the browser address bar, enter 172.30.12.59:10101

 

Guess you like

Origin www.cnblogs.com/wangle1001986/p/12073046.html
rpm