为 SGD Gateway 创建新配置来覆盖当前配置。
gateway config create { [ --interfaceinterface:port
] [ --entry-pointip-address:port
] [ --out plaintext | ssl ] } | --filefile
下表显示了此命令的可用选项。
选项 | 描述 |
---|---|
| SGD Gateway 侦听传入代理连接所使用的接口和端口。默认为所有接口上的 TCP 端口 443。 |
| 网络的入口点。这是客户端用于连接 SGD Gateway 的 Internet 协议 (Internet Protocol, IP) 地址和端口。您可以指定域名系统 (Domain Name System, DNS) 地址来代替 IP 地址。 |
|
从 SGD Gateway 到阵列中的 SGD 服务器的传出通信格式。如果您要使用安全连接,请选择 |
| 指定包含配置设置的文件。 |
如果没有为 gateway config create 命令指定选项,则将显示一系列联机提示,使您能够键入所需设置。
如果在 gateway config create 中使用 --file
选项,则指定的文件必须与 /opt/SUNWsgdg/etc/gatewayconfig.xml
文件格式相同。此文件在 SGD Gateway 的初始配置期间创建,如第 2.2.1.1 节 “如何配置 SGD Gateway 的端口和连接”中所述。
以下示例将 SGD Gateway 配置为在 TCP 端口 443 上侦听来自位于 192.168.0.1 的网络入口点的连接。SGD Gateway 和阵列中的 SGD 服务器之间使用安全连接。
# /opt/SUNWsgdg/bin/gateway config create --interface *:443 \ --entry-point 192.168.0.1:443 --out ssl