gitblit解压后,命令行运行installService.cmd之前,需要修改里面的参数,将ARCH修改x86,默认是amd64,我的机器是windows 10 Pro 64位版本,jdk也都是64位,但是默认amd64启动不了,启动时出现以下错误:
[2015-12-01 21:58:31] [info] Commons Daemon procrun (1.0.10.0 32-bit) started
[2015-12-01 21:58:32] [info] Running 'gitblit' Service...
[2015-12-01 21:58:32] [info] Starting service...
[2015-12-01 21:58:32] [error] Failed creating java
[2015-12-01 21:58:32] [error] ServiceStart returned 1
[2015-12-01 21:58:32] [info] Run service finished.
[2015-12-01 21:58:32] [info] Commons Daemon procrun finished
修改后的installService.cmd内容为:
修改之后,管理员权限CMD窗口中执行installService.cmd,不要双击,双击貌似没有反应。
windows 8和10下,打开管理员模式CMD方式是:Ctrl + X,选择Command Prompt(Admin)。