Configuring the windows Gitblit

1, the configuration JDK
2, download Gitblit, download Gitblit, Download: http://www.gitblit.com
. 3, extract the package, without having to install
4, arranged gitblit.properties:

 1. 新建一个文件my.properties(此文件复制defaults.properties)

Here Insert Picture Description

2.修改git.repositoriesFolder=(存放路径)

Here Insert Picture Description

3.修改http端口,server.httpPort=80

Here Insert Picture Description

4.修改服务器的IP(本地IP),server.httpBindInterface=192.168.1.101,server.httpsBindInterface=192.168.1.101

Here Insert Picture Description

5, gitblit.cmd run the batch file, run the following success
Here Insert Picture Description

6, open gitblit
Here Insert Picture Description

7, set to windows service (service) way to start gitblit

1.修改installService.cmd文件
修改ARCH:32位系统:SET ARCH=x86,64位系统:SET ARCH=amd64
添加CD程序目录:SET  CD=D:/gitblit
设置StartParams=""	(设置为空即可)

Here Insert Picture Description

2.以管理员身份运行installService.cmd,并在服务中启动,保持这个服务启动

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/yu_wlong/article/details/82755529