附录 A. RHN Proxy 服务器配置文件示例
RHN Proxy 服务器的
/etc/rhn/rhn.conf 配置文件为您创建密钥集合提供了一个方法。请注意,如果在这个文件中插入了错误的信息将会导致 Proxy 失败。请在更改时格外小心。
如果您正在使用一个 RHN Satellite 服务器,您应该使用以下参数进行连接:traceback_mail 和 proxy.rhn_parent。您可以参阅样本和它的注释(以 # 开始)获得详细信息。
注意
您可以测试为目的将
use_ssl 设置添加到 rhn.conf 。将其值设为 0 可以临时在 Proxy 和上级服务器间禁用 SSL。注意,这将会影响到系统的安全性。您可以把它重新设置为 1 重新启用 SSL,或简单地把这行从配置文件中删除。
# Automatically generated RHN Management Proxy Server configuration file.
# -------------------------------------------------------------------------
# SSL CA certificate location
proxy.ca_chain = /usr/share/rhn/RHNS-CA-CERT
# Corporate HTTP proxy, format: corp_gateway.example.com:8080
proxy.http_proxy =
# Password for that corporate HTTP proxy
proxy.http_proxy_password =
# Username for that corporate HTTP proxy
proxy.http_proxy_username =
# Location of locally built, custom packages
proxy.pkg_dir = /var/spool/rhn-proxy
# Hostname of RHN Server or RHN Satellite
proxy.rhn_parent = rhn.redhat.com
# Destination of all tracebacks, etc.
traceback_mail = user0@domain.com, user1@domain.com