Glassfish+Payara自动化安装脚本!!
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Glassfish+Payara自动化安装脚本!!相关的知识,希望对你有一定的参考价值。
#!/bin/bash#Date:8/2/2019
if [ "$1" != "" ]
then
cd /home/glassfishv3/payara41/glassfish/bin
./asadmin create-domain --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --domaindir ../domains --adminport $1 $2
./asadmin start-domain $2
./asadmin --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --port $1 enable-secure-admin
./asadmin restart-domain $2
./asadmin --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --host host1 --port $1 create-node-ssh --nodehost host1
--nodedir /home/glassfishv3/payara41/glassfish/nodes $3-g01
./asadmin --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --host host1 --port $1 create-node-ssh --nodehost host2
--nodedir /home/glassfishv3/payara41/glassfish/nodes $3-g02
./asadmin --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --host host1 --port $1 create-cluster cluster
sleep 5
./asadmin --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --host host1 --port $1 create-instance --node $3-g01 --cluster clus
ter $3-g1
sleep 5
ssh host2 /home/glassfishv3/payara41/glassfish/bin/asadmin --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --host listix0rdwe
ba03 --port $1 create-instance --node $3-g02 --cluster cluster $3-g2
sleep 5
./asadmin --user glassfish --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --host host1 --port $1 set configs.config.cluster-config.network-co
nfig.network-listeners.network-listener.http-listener-1.port=9500
sleep 5
./asadmin --passwordfile /home/glassfishv3/AS_ADMIN_PASSWORD/normal.txt --host host1 --port $1 start-cluster cluster
elif [ "$1" == "delete" ]
then
./asadmin stop-domain domain2
./asadmin delete-domain --domaindir ../domains domain2
else
echo "Please set adminport domain# appname appport"
fi
以上是关于Glassfish+Payara自动化安装脚本!!的主要内容,如果未能解决你的问题,请参考以下文章
Tyrus 端点阻止 Glassfish (Payara) 中的线程
如何将 Hibernate 配置为 Payara/Glassfish 4.1 的 JPA 提供程序? [关闭]
org.jboss.weld.exceptions.DefinitionException:在payara / glassfish中部署时的WELD-001113
包含EJB的Java 8 Compiled EAR导致Payara中的java.lang.NoClassDefFoundError
Payara Server 错误:找不到或无法加载主类[9]--add-opens-java.logging.java.util.logging-ALL-UNNAMED