2.4. 删除 SGD Gateway

要删除 SGD Gateway,请删除 SGD Gateway 主机上安装的软件。

2.4.1. 如何删除 SGD Gateway

  1. 在 SGD Gateway 主机上,以超级用户 (root) 身份登录。

  2. 更改 SGD 阵列的 SGD Client 路由配置。

    1. 在主 SGD 服务器上以超级用户 (root) 身份登录。

    2. 编辑 SGD 阵列的 --security-gateway 属性。

      对于使用一个 SGD Gateway 的基本部署,请运行以下命令:

      # tarantella config edit --security-gateway ""
      注意

      对于使用多个 SGD Gateway 和一个外部负载平衡器的负载平衡部署,无需编辑 --security gateway 属性。

  3. 卸载 SGD Gateway。

    运行以下命令:

    # /opt/SUNWsgdg/bin/gateway uninstall

    将显示一条警告消息,提示您确认要停止 SGD Gateway。

    小心

    gateway uninstall 命令是用于删除 SGD Gateway 的唯一受支持的方法。请不要直接使用 pkgrmrpm 命令来删除 SGD Gateway。

  4. (可选)从 SGD 阵列的注册 SGD Gateway 列表中删除 SGD Gateway。

    1. 显示 SGD 阵列的注册 SGD Gateway。

      # tarantella gateway list
      Installed gateway: gateway1.example.com
      Issuer: CN=gateway1.example.com, OU=Marketing, O=Example, L=Boston, 
      ST=Massachusetts, C=US
      Serial Number: 1208509056
      Subject: CN=gateway2.example.com, OU=Marketing, O=Example, L=Boston, 
      ST=Massachusetts, C=US
      Valid from Fri Sep 26 09:57:36 GMT 2008 to Thu Dec 25 09:57:36 GMT 2008
    2. 从 SGD 阵列的注册 SGD Gateway 列表中删除 SGD Gateway。

      # tarantella gateway remove --name gateway1.example.com