1. DAS节点执行:1)./asadmin start-domain domain1
2)./asadmin change-admin-password
3)./asadmin enable-secure-admin
4)./asadmin set configs.config.server-config.network-config.protocols.protocol.sec-admin-listener.ssl.ssl3-enabled=true
5)打开DAS 4848控制台,进入控制后,选择“群集”,“新建”一个haierCluster的群集
6)重启DAS
2. 配置公钥认证配置操作参考: http://www.cnblogs.com/xia520pi/archive/2012/05/16/2503949.html,此网站第2章节
由于上面glassfish服务已经搭建完成,启动后,后续搭建集群的操作可以在控制台页面进行。
3. 建立SSH节点./asadmin create-node-ssh --sshport 8284 --nodehost haier001 haier001
4. 将Glassfish复制到其他节点scp -rp -P 8284 glassfish3 haier002:/usr/local/liveEpg/scp -rp -P 8284 glassfish3 haier004:/usr/local/liveEpg/scp -rp -P 8284 glassfish3 haier005:/usr/local/liveEpg/scp -rp -P 8284 glassfish3 haier007:/usr/local/liveEpg/
5. 在DAS节点执行下面语句(或通过控制台添加节点)
./asadmin install-node haier002
asadmin create-node-ssh --nodehost haier002 haier002
asadmin install-node haier004
asadmin create-node-ssh --nodehost haier004 haier004
asadmin install-node haier005
asadmin create-node-ssh --nodehost haier005 haier005
asadmin install-node haier007
asadmin create-node-ssh --nodehost haier007 haier007
haier001机器执行:
./asadmin create-instance --cluster haierCluster --node haier001 instance-haier001
haier002机器执行:
./asadmin --host haier001 --port 4848 create-local-instance --cluster haierCluster instance-haier002
haier004机器执行:
./asadmin --host haier001 --port 4848 create-local-instance --cluster haierCluster instance-haier004
haier005机器执行:
./asadmin --host haier001 --port 4848 create-local-instance --cluster haierCluster instance-haier005
haier007机器执行:
./asadmin --host haier001 --port 4848 create-local-instance --cluster haierCluster instance-haier007
集群中的node无法启动,抛出无法执行
异常l信息:ine 54:exec java not found To complete this operation run the following.....
解决方案:在glassfish/config/asenv.conf文件里面加上JDK路径,增加 AS_JAVA=/opt/jdk1.6.0_32,配置上jdk的安装路径。
转: http://www.myexception.cn/open-source/463095.html
1. 停止GlassFish Server
2. 修改C:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\config\domain.xml
在<java-config段中添加<jvm-options>-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true</jvm-options>(关闭Glassfish的网络链接)
3. 删除以下文件夹
c:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\osgi-cache\
c:\Program Files\glassfish-3.0.1\glassfish\domains\domain1\generated\
4. 将c:\Program Files\glassfish-3.0.1\glassfish\modules\console-updatecenter-plugin.jar改名或删除
5. 启动GlassFish Server
6. 进入管理控制台,快了不是一点点