Java Desktop System 发行版 3 管理指南

设置 HTTP 代理首选项

要设置 HTTP 代理首选项,请修改 /system/http_proxy/ 位置中首选项键的值。例如,要为 HTTP 代理主机设置强制值,请执行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string --set /system/http_proxy/host proxy-name

要为 HTTP 代理主机设置缺省值,请执行以下命令:

# gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.defaults --type string --set /system/http_proxy/host proxy-name

还可以设置其他 HTTP 代理相关的首选项。有关其他 HTTP 代理首选项的信息,参见 system_http_proxy.schemas 架构定义文件。