B.6. gateway config edit

编辑 SGD Gateway 的当前配置。

语法

gateway config edit [ --binding int:port ]
                    [ --routes-http-maxcon num ]
                    [ --routes-aip-maxcon num ]
                    [ --routes-reverseproxy-redirect port ]
                    [ --services-reflection-binding int:port ]
                    [ --services-reflection-auth-binding int:port ]

描述

这些命令行选项使您能够编辑特定的配置设置。您必须至少指定一个命令行选项。

SGD Gateway 的当前配置存储在 /opt/SUNWsgdg/etc/gatewayconfig.xml 文件中。

您必须重新启动 SGD Gateway 来启用您执行的任何配置更改。

下表显示了此命令的可用选项。

选项

描述

--binding

SGD Gateway 侦听传入代理连接所使用的接口和端口。默认为所有接口上的 TCP 端口 443。

--routes-http-maxcon

HTTP 连接的最大数量。默认值在安装时配置,并取决于 SGD Gateway 上可用的内存资源。请参见第 C.1 节 “调整 SGD Gateway”

--routes-aip-maxcon

AIP 连接的最大数量。默认值在安装时配置,并取决于 SGD Gateway 上可用的内存资源。请参见第 C.1 节 “调整 SGD Gateway”

--routes-reverseproxy-redirect

HTTP 重定向端口。默认为 TCP 端口 8080。

--services-reflection-binding

用于对 SGD Gateway 反射服务进行未经验证的访问的接口和端口。默认为本地主机回送接口上的 TCP 端口 81。

--services-reflection-auth-binding

用于对 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