首页 > 系统相关 >快速搭建 Git 服务器[Windows版]

快速搭建 Git 服务器[Windows版]

时间:2022-09-20 16:33:14浏览次数:99  
标签:Git Windows bind server 文件夹 Gitblit 服务器 localhost

服务器搭建

下载

解压

解压缩下载的压缩包即可,无需安装。
image

创建本地存储文件夹

image

配置

打开data文件夹下的gitblit.properties
在第17行可以看到

include = defaults.properties

同文件夹下找到defaults.properties
将上边配置的本地存储文件夹的路径复制过来

#git.repositoriesFolder = ${baseFolder}/git
git.repositoriesFolder = E:\GitBlit\Repository

找到server.httpPort,设定http协议的端口号

# 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 = 1024

找到server.httpBindInterface,设定服务器的IP地址。这里就设定你的服务器IP。

# 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 = localhost

找到server.httpsBindInterface,设定为localhost

# Specify the interface for Jetty to bind the secure 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.httpsBindInterface = localhost

运行

运行gitblit.cmd
image

如上图则运行成功
在浏览器中打开,现在就可以使用GitBlit了。默认用户名密码都是 admin
image

标签:Git,Windows,bind,server,文件夹,Gitblit,服务器,localhost
From: https://www.cnblogs.com/leepandar/p/16711536.html

相关文章

  • Winsw将jar包部署为windows服务
    Winsw将jar包部署为windows服务​github下载地址Releases·winsw/winsw·GitHubhttps://github.com/winsw/winsw/releases阿里云盘下载地址 阿里云盘分享https......
  • 快速创建SQL Server 链接服务器
    SQLServer链接服务器简介SQLServer提供链接到另一个服务器的选项。这通常被用来连接到其他SQLServer数据库,但它也可以被用来连接到一个MicrosoftAccess数据库。这是通......
  • bat cmd批处理命令获取管理员权限&停止、启动windows服务
    获取管理员权限@echooff>nul2>&1"%SYSTEMROOT%\system32\cacls.exe""%SYSTEMROOT%\system32\config\system"if'%errorlevel%'NEQ'0'(echorunasadministrat......
  • Windows安装Jenkins详细教程(图文教程)
    一、安装前准备1、提前安装好jdk,可参考以下链接进行安装Windows安装JDK详细教程(图文教程)2、Jenkins官网下载安装包(因为本人jdk安装的是1.8,所以会和最新版jenkins不符合,......
  • 服务器热插拔硬盘移除指南
    前言服务器大多支持2.5inch盘位的SATA/SAS硬盘热插拔,实际操作需要注意流程。插入首先确定面板上的bay直连主板而不是通过RAID卡进行转接,RAID卡需要重启才能识别。直连......
  • 国内外主流的 Git 代码托管网站
    国内外主流的Git代码托管网站#国外的三大Git代码托管平台都支持 DevOps,国内的主流托管平台均支持 DevOps 或者有条件(付费)支持.1.GitHub#https://github.......
  • SpringBoot实战电商项目商城(50k+star)地址:github.com/macrozheng/...
    经常遇到小伙伴问我之前写的技术文章在哪里。或者用很久以前的部署文档问我,为什么不能按照这篇文章进行部署。其实如果他们上过我的实战教程网站,估计就不会出现这样的问题......
  • github强制远程代码覆盖本地过程
    假设在B设备上更新了代码,需要在A设备上同步保证B设备上的所有更改COMMIT并且PUSH到了github上A设备上清理工作区gitclean-df注意,这会删除当前的更改在A设备上pul......
  • 如何在idea上创建gitlab远程分支
    git分支只需要在idea里面创建新分支,然后直接push,gitlab上面就有新分支了     ......
  • 使用start10美化Windows任务栏
    软件下载:StardockStart10(Win10菜单增强)v1.97特别版-果核剥壳(ghxi.com)以上链接并非完全版,完整版自行寻找软件界面:    再记录一下开始按钮图标制作:......