Last active
July 13, 2022 13:34
-
-
Save wytten/a6019e970a1c861d6c19e1bb1fc49fc2 to your computer and use it in GitHub Desktop.
WebLogic domain creation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ $# -lt 2 ]; then | |
echo "Two args required e.g., ./create.sh DDS_Sup 7001" | |
exit 1 | |
fi | |
domain="$1" | |
port="$2" | |
if [ -d "$domain" ]; then | |
echo "Error: $domain exists" | |
exit 1 | |
fi | |
mkdir $domain | |
. /apps/WLS/Oracle_Home/wlserver/server/bin/setWLSEnv.sh | |
export JAVA_HOME=/apps/WLS/java | |
export PATH=$JAVA_HOME/bin:$PATH | |
(cd $domain; java -XX:MaxPermSize=256M -Xms1g -Xmx1g -Dweblogic.management.username=weblogicsup \ | |
-Dweblogic.Domain=$domain \ | |
-Dweblogic.Name=AdminServer \ | |
-Dweblogic.ListenPort=$port \ | |
-Dweblogic.management.GenerateDefaultConfig=true \ | |
weblogic.Server) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment