指定的域名服务器必须解析 您的 GitHub Enterprise Server 实例 的主机名。
警告:初始设置后不要更改 GitHub Enterprise Server 的主机名。 更改主机名将会导致意外的行为,甚至包括实例中断。
使用虚拟机控制台配置域名服务器
- 使用虚拟平台工具,打开虚拟机器控制台。
- 要开始网络设置,请按 S。
- 为实例配置域名服务器。
- 要完成配置设置,请按 D。
使用管理 shell 配置域名服务器
-
SSH 连接到 您的 GitHub Enterprise Server 实例。 If your instance comprises multiple nodes, for example if high availability or geo-replication are configured, SSH into the primary node. If you use a cluster, you can SSH into any node. For more information about SSH access, see "Accessing the administrative shell (SSH)."
$ ssh -p 122 admin@HOSTNAME
-
To edit your nameservers, use the
ghe-setup-network
command in visual mode. 更多信息请参阅“命令行实用程序”。ghe-setup-network -v
-
要向 您的 GitHub Enterprise Server 实例 添加新的域名服务器条目,请运行以下命令:
sudo service resolvconf restart sudo service dnsmasq restart