我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.15

此版本的 GitHub Enterprise 将停止服务 此版本的 GitHub Enterprise 已停止服务 2019-10-16. 即使针对重大安全问题,也不会发布补丁。 For better performance, improved security, and new features, upgrade to the latest version of GitHub Enterprise. For help with the upgrade, contact GitHub Enterprise support.

在 OpenStack KVM 上安装 GitHub Enterprise Server

要在 OpenStack KVM 上安装 GitHub Enterprise Server,您必须具有 OpenStack 访问权限并下载 GitHub Enterprise Server QCOW2 映像。

本文内容

基本要求

硬件考量因素

GitHub Enterprise Server requires a persistent data disk separate from the root disk. For more information, see "System overview."

对于存储设备,我们建议您使用直接附加的或来自存储区域网络 (SAN) 的高性能 SSD。

建议根据 您的 GitHub Enterprise Server 实例 中使用的席位数选择不同的硬件配置。 |

席位 vCPU 内存 附加的存储容量 根存储容量
10-500 2 16 GB 100 GB 200 GB
500-3000 4 32 GB 250 GB 200 GB
3000-5000 8 64 GB 500 GB 200 GB
5000-8000 12 72 GB 750 GB 200 GB
8000-10000+ 16 128 GB 1000 GB 200 GB

这些是最低限度的建议。 根据您的使用情况(例如用户活动和选定的集成),可能需要更多资源。 更多信息请参阅“增加 CPU 或内存资源”。

Note: The root disk can be resized by building a new appliance or using an existing appliance. For more information, see "Increasing storage capacity."

Warning: We recommend you use webhooks to fetch repository changes for continuous integration (CI) or similar systems. Regular automatic checks, or polling, will significantly reduce the scalability of your instance. For more information, see "About webhooks"

下载 GitHub Enterprise Server 映像

  1. Navigate to the GitHub Enterprise Server download page.

  2. 要下载许可文件,请单击 Download license

  3. Click Get the latest release of GitHub Enterprise Server.

  4. 选择 GitHub 内部部署,然后单击 OpenStack KVM (QCOW2)

  5. 单击 Download for OpenStack KVM (QCOW2)

创建 GitHub Enterprise Server 实例

To create the instance, you'll need to import the GitHub Enterprise Server image to your virtual machine and attach an additional storage volume for your instance data. 更多信息请参阅“硬件考量因素”。

  1. 在 OpenStack Horizon 中,上传您下载的 GitHub Enterprise Server 映像。 有关说明,请参阅 OpenStack 指南“上传和管理映像”的“上传映像”部分。

  2. Create a new virtual disk to use as an attached storage volume for your instance data, and configure the size based on your seat count. 有关说明,请参阅 OpenStack 指南“创建和管理卷”。

  3. 创建安全组,并为下表中的各个端口添加新的安全组规则。 有关说明,请参阅 OpenStack 指南“为实例配置访问和安全”。

    端口 服务 描述
    22 SSH Git over SSH 访问。 支持克隆、获取和推送操作到公共/私有仓库。
    25 SMTP 支持加密 (STARTTLS) 的 SMTP。
    80 HTTP Web 应用程序访问。 当 SSL 启用时,所有请求都会重定向到 HTTPS 端口。
    122 SSH 实例 shell 访问。 默认 SSH 端口 (22) 专用于应用程序 git+ssh 网络流量。
    161/UDP SNMP 为网络监视协议操作所需。
    443 HTTPS Web 应用程序和 Git over HTTPS 访问。
    1194/UDP VPN 采用高可用性配置的安全复制网络隧道。
    8080 HTTP 基于纯文本 Web 的 管理控制台。 除非手动禁用 SSL,否则不需要。
    8443 HTTPS 基于安全 Web 的 管理控制台。 进行基本安装和配置时需要。
    9418 Git 简单的 Git 协议端口。 仅克隆和获取操作到公共仓库。 未加密的网络通信。
  4. 也可以将浮动 IP 关联到实例。 根据 OpenStack 设置,您可能需要将浮动 IP 分配给项目并将其关联到实例。 请联系您的系统管理员以确定您是否属于这种情况。 更多信息请参阅 OpenStack 文档中的“为实例分配浮动 IP 地址”。

  5. 使用在前几步创建的映像、数据卷和安全组启动 您的 GitHub Enterprise Server 实例。 有关说明,请参阅 OpenStack 指南“启动和管理实例”。

配置 GitHub Enterprise Server 实例

  1. Copy the virtual machine's public DNS name, and paste it into a web browser.

  2. At the prompt, upload your license file and set a management console password. For more information, see "Managing your GitHub Enterprise Server license."

  3. In the 管理控制台, configure and save your desired settings. For more information, see "Configuring the GitHub Enterprise Server appliance."

  4. The instance will restart automatically.

  5. Click Visit your instance.

延伸阅读

问问别人

找不到要找的内容?

联系我们