用于 Solaris 操作环境的 GNOME 2.0 桌面系统管理指南

设置 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 架构定义文件。