编辑 SGD Gateway 的当前配置。
gateway config edit [ --bindingint
:port
] [ --routes-http-maxconnum
] [ --routes-aip-maxconnum
] [ --routes-reverseproxy-redirectport
] [ --services-reflection-bindingint
:port
] [ --services-reflection-auth-bindingint
:port
]
这些命令行选项使您能够编辑特定的配置设置。您必须至少指定一个命令行选项。
SGD Gateway 的当前配置存储在 /opt/SUNWsgdg/etc/gatewayconfig.xml
文件中。
您必须重新启动 SGD Gateway 来启用您执行的任何配置更改。
下表显示了此命令的可用选项。
选项 | 描述 |
---|---|
| SGD Gateway 侦听传入代理连接所使用的接口和端口。默认为所有接口上的 TCP 端口 443。 |
| HTTP 连接的最大数量。默认值在安装时配置,并取决于 SGD Gateway 上可用的内存资源。请参见第 C.1 节 “调整 SGD Gateway”。 |
| AIP 连接的最大数量。默认值在安装时配置,并取决于 SGD Gateway 上可用的内存资源。请参见第 C.1 节 “调整 SGD Gateway”。 |
| HTTP 重定向端口。默认为 TCP 端口 8080。 |
| 用于对 SGD Gateway 反射服务进行未经验证的访问的接口和端口。默认为本地主机回送接口上的 TCP 端口 81。 |
| 用于对 SGD Gateway 反射服务进行经过验证的访问的接口和端口。默认为所有接口上的 TCP 端口 82。 |
以下示例更改 SGD Gateway 的 HTTP 和 AIP 连接的最大数量。
# /opt/SUNWsgdg/bin/gateway config edit --routes-http-maxcon 200 # /opt/SUNWsgdg/bin/gateway config edit --routes-aip-maxcon 3000