gitblit安装配置

git 服务器(Windows版gitblit)安装总结:
gitblit是使用java来管理git的软件,下载地址: http://gitblit.com/
1、windows安装
step1:
下载gitblit-1.8.0.zip,不需要安装,直接解压(最好解压到电脑软件常用的安装目录中去。如:D:\Program Files\),解压后目录中会出现 gitblit-1.8.0文件夹。
step2:
1)、进入到目录中的data目录,将defaults.properties复制一份在同一目录下并更改文件名(我改为:my.properties);
2)、打开my.properties,修改文件中的内容:
a、指定自己的资源库存放目录(git.repositoriesFolder)
git.repositoriesFolder = E:/GitReponsitory
b、可选配置,使用的传输方式(git.acceptedPushTransports)
# Specify the list of acceptable transports for pushes.
# If this setting is empty, all transports are acceptable.
#
# Valid choices are: GIT HTTP HTTPS SSH
#
# SINCE 1.5.0
# SPACE-DELIMITED
git.acceptedPushTransports = HTTP HTTPS SSH
c、设置http访问时的端口号(server.httpPort)
# Standard http port to serve. <= 0 disables this connector.
# On Unix/Linux systems, ports < 1024 require root permissions.
# Recommended value: 80 or 8080
#
# SINCE 0.5.0
# RESTART REQUIRED
server.httpPort = 10101
d、设置https访问时的端口号(server.httpsPort)
# Secure/SSL https port to serve. <= 0 disables this connector.
# On Unix/Linux systems, ports < 1024 require root permissions.
# Recommended value: 443 or 8443
#
# SINCE 0.5.0
# RESTART REQUIRED
server.httpsPort = 8443
e、 设定服务器的IP地址(server.httpBindInterface)。
# Specify the interface for Jetty to bind the standard connector.
# You may specify an ip or an empty value to bind to all interfaces.
# Specifying localhost will result in Gitblit ONLY listening to requests to
# localhost.
#
# SINCE 0.5.0
# RESTART REQUIRED
server.httpBindInterface = 192.168.1.153
保存并关闭,然后执行gitblit-1.8.0目录下的gitblit.cmd,打开浏览器 输入 http://192.168.1.153:10101 默认管理员账号:admin/admin
 
 
 

猜你喜欢

转载自lookahead.iteye.com/blog/2333717