執行以下 asadmin 指令以建立名為 cluster1 的叢集:asadmin create-cluster --user admin --passwordfile adminpassword.txt --host localhost -port 4848 cluster1
執行以下 asadmin 指令以建立名為 cluster1 的叢集:asadmin create-cluster --user admin --passwordfile adminpassword.txt --host localhost -port 4848 cluster1
執行以下指令以建立名為 cluster1-nodeagent 的節點代理程式:asadmin create-node-agent --user admin --passwordfile adminpassword.txt --host localhost --port 4848 cluster1-nodeagent
執行以下指令以啟動此節點代理程式:asadmin start-node-agent --user admin --passwordfile adminpassword.txt --host localhost --port 4848 cluster1-nodeagent
執行以下指令在此叢集下建立兩個實例:
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
執行以下指令來啟動叢集: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 章「配置節點代理程式」。