如果 BEA WebLogic Server START 脚本 startManagedWebLogic.sh 将受管理服务器名称用作变量,则可以设置扩展特性 Server_name。 可以使用 START 脚本 startManagedWebLogic.sh 启动若干个受管理服务器。 必须在 START 脚本中配置 ADMIN_URL。 要手动启动 BEA WebLogic Server,请使用以下命令。
cluster-node-1> cd /global/wls/user_projects/petstore cluster-node-1> ./startManagedWebLogic.sh petstore1 |
要配置其 START 脚本采用服务器名称 petstore1 的 Sun Cluster HA for BEA WebLogic Server 资源,请使用以下命令。
# scrgadm -a -j bea-rs -t SUNW.wls -g bea-rg\ -x Confdir_list=/global/bea/beahome/weblogic700\ -x Server_url=http://logical_host1:7001\ -x Start_script=/global/bea/beahome/user_projects/petstore/startWebLogic.sh\ -x Server_name=petstore1 |
要配置将同一 START 脚本用于其他服务器 petstore2 的另一个 Sun Cluster HA for BEA WebLogic Server 资源,请使用以下命令。
# scrgadm -a -j bea-rs -t SUNW.wls -g bea-rg\ -x Confdir_list=/global/bea/beahome/weblogic700\ -x Server_url=http://logical_host1:7001\ -x Start_script=/global/bea/beahome/user_projects/petstore/startWebLogic.sh\ -x Server_name=petstore2 |