即使您的站点执行 HTTP 代理验证,也必须配置 HTTP 代理验证设置(用户名和口令)。在文本文件中口令必须单列一行进行指定,然后才能传送给 regadm 命令。以下步骤介绍如何在使用中保护口令文件。此文件应在运行 regadm 命令后立即删除。
regadm 命令在两种情况下接收口令文件:
使用 regadm auth 命令设置用户名和口令时。
使用 regadm set 命令设置 HTTP 代理用户名和口令时。
成为超级用户或同等角色。
设置 HTTP 代理用户名。
# regadm set -n http_proxy_user -v webuser |
其中 webuser 是站点提供值,用于验证具有 HTTP 代理服务器的用户。
创建临时口令文件。
# touch pwfile |
确保文件的权限安全。
# chmod 600 pwfile |
使用文本编辑器编辑临时口令文件以插入含有口令信息的单行条目。
设置 HTTP 口令验证信息。
# regadm set -n http_proxy_pw -v pwfile |
其中 pwfile 是步骤 3 中您创建的口令文件。
删除口令文件。
# rm pwfile |
以下示例说明,如何为要求验证 HTTP 用户名和口令的站点配置 HTTP 验证属性。
# regadm set -n http_proxy_user -v webuser # touch myhttppasswd # chmod 600 myhttppasswd # vi myhttppasswd . . . # regadm set -n http_proxy_pw -v myhttppasswd # rm myhttppasswd |
要将网络连通性切换到直接连接,您必须将所有 HTTP 代理设置为 null 值 (not configured),如以下示例所示:
# regadm set -n http_proxy "" # regadm set -n http_proxy_port "" # regadm set -n http_proxy_user "" # regadm set -n http_proxy_pw "" # regadm list My Oracle Support username <not configured> HTTP Proxy <not configured> HTTP proxy port <not configured> HTTP proxy user <not configured> HTTP proxy password <not configured> |