Sun Java System Application Server 9.1 快速入门指南

Procedure使用 CLI 命令创建群集

  1. 通过运行下面的 asadmin 命令创建一个称为 cluster1 的群集:asadmin create-cluster --user admin --passwordfile adminpassword.txt --host localhost -port 4848 cluster1

  2. 通过运行下面的 asadmin 命令创建一个称为 cluster1 的群集:asadmin create-cluster --user admin --passwordfile adminpassword.txt --host localhost -port 4848 cluster1

  3. 通过运行下面的命令创建一个称为 cluster1-nodeagent 的节点代理:asadmin create-node-agent --user admin --passwordfile adminpassword.txt --host localhost --port 4848 cluster1-nodeagent

  4. 通过运行下面的命令启动该节点代理:asadmin start-node-agent --user admin --passwordfile adminpassword.txt --host localhost --port 4848 cluster1-nodeagent

  5. 通过运行以下两个命令在该群集下创建两个实例:

    • asadmin create-instance --user admin --passwordfile adminpassword.txt --host localhost -port 4848 --cluster cluster1 --nodeagent cluster1-nodeagent --systemproperties "JMX_SYSTEM_CONNECTOR_PORT=8687:IIOP_LISTENER_PORT=3330:IIOP_SSL_LISTENER_PORT=4440:IIOP_SSL_ MUTUALAUTH_PORT=5550:HTTP_LISTENER_PORT=1110:HTTP_SSL_LISTENER_PORT=2220" instance1

    • asadmin create-instance --user admin --passwordfile adminpassword.txt --host localhost -port 4848 --cluster cluster1 --nodeagent cluster1-nodeagent --systemproperties "JMX_SYSTEM_CONNECTOR_PORT=8688:IIOP_LISTENER_PORT=3331:IIOP_SSL_LISTENER_PORT=4441:IIOP_SSL_ MUTUALAUTH_PORT=5551:HTTP_LISTENER_PORT=1111:HTTP_SSL_LISTENER_PORT=2221" instance2

  6. 通过运行下面的命令启动该群集:asadmin start-cluster --user admin --passwordfile adminpassword.txt --host localhost --port 4848 cluster1

    有关创建和配置群集的详细信息,请参见《Sun Java System Application Server 9.1 高可用性管理指南》中的第 6  章 “使用 Application Server 群集”

    有关创建和配置节点代理的详细信息,请参见《Sun Java System Application Server 9.1 高可用性管理指南》中的第 8  章 “配置节点代理”