1.配置/data/defaults.properties
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.
2.服務器防火牆端口配置
這個可以不用設置
3.安全組規則配置
進入實例->操作中的規則配置->將你在gitblit中配置的端口入口和出口都添加一下就可以了