차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
jboss_eap_general_configuration_script [2022/01/03 04:18] – koov | jboss_eap_general_configuration_script [2025/03/05 07:14] (현재) – [JDK 1.8 이상 버전을 위한 환경파일] koov | ||
---|---|---|---|
줄 61: | 줄 61: | ||
===== jboss.env ===== | ===== jboss.env ===== | ||
+ | |||
+ | ==== JDK 1.8 이상 버전을 위한 환경파일 ==== | ||
+ | |||
+ | <WRAP prewrap> | ||
+ | <code vim jboss.env> | ||
+ | ################################################## | ||
+ | # description : JBoss EAP Standalone script | ||
+ | # version | ||
+ | # date : 2024-12-05 | ||
+ | # author | ||
+ | ################################################## | ||
+ | DATE=`date " | ||
+ | UNAME=`id -u -n` | ||
+ | |||
+ | JBOSS_USER=" | ||
+ | NODE_NAME=" | ||
+ | |||
+ | ################################################## | ||
+ | # JBOSS Common Setup | ||
+ | ################################################## | ||
+ | JBOSS_HOME="/ | ||
+ | |||
+ | SERVER_HOME=" | ||
+ | SERVER_BASE_DIR=" | ||
+ | SERVER_BIN_DIR=" | ||
+ | |||
+ | LOG_HOME=" | ||
+ | |||
+ | BIND_ADDR=" | ||
+ | MGNT_ADDR=" | ||
+ | PRIVATE_ADDR=" | ||
+ | UNSECURE_ADDR=" | ||
+ | |||
+ | MULTICAST_ADDR=" | ||
+ | CLUSTER_PASSWD=" | ||
+ | MESSAGE_ADDR=" | ||
+ | MESSAGE_PORT=" | ||
+ | |||
+ | MGNT_HTTP_PORT=" | ||
+ | MGNT_HTTPS_PORT=" | ||
+ | |||
+ | PORT_OFFSET=" | ||
+ | PORT_AJP=" | ||
+ | PORT_HTTP=" | ||
+ | PORT_HTTPS=" | ||
+ | |||
+ | ################################################## | ||
+ | # Current Host Setup | ||
+ | ################################################## | ||
+ | GC_TYPE=" | ||
+ | USE_LARGEPAGE=" | ||
+ | |||
+ | ################################################## | ||
+ | # Configration File | ||
+ | ################################################## | ||
+ | SERVER_CONFIG_FILE=" | ||
+ | |||
+ | ################################################## | ||
+ | # Java Version Check | ||
+ | JAVA_VER=`java -version 2>&1 | sed ' | ||
+ | JAVA_VER_MAJOR=`java -version 2>&1 | sed ' | ||
+ | JAVA_VER_MINOR=`java -version 2>&1 | sed ' | ||
+ | |||
+ | if [ -z " | ||
+ | then | ||
+ | echo "Java is not installed"; | ||
+ | exit 1; | ||
+ | fi | ||
+ | |||
+ | ################################################## | ||
+ | # JVM Options | ||
+ | ################################################## | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ### Linux Large Page Setting | ||
+ | if [ $USE_LARGEPAGE == " | ||
+ | JAVA_OPTS=" | ||
+ | fi | ||
+ | |||
+ | ### Garbage Collection Options | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | if [ $JAVA_VER_MAJOR -ge 11 ]; then | ||
+ | JAVA_OPTS=" | ||
+ | else | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | fi | ||
+ | |||
+ | ### Collector type : G1 (low pause) | ||
+ | if [ $GC_TYPE == " | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ### Collector type : Parallel (throughput) | ||
+ | elif [ $GC_TYPE == " | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ### ShenandoahGC | ||
+ | elif [ $GC_TYPE == " | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ### ZGC (jdk 17+) | ||
+ | elif [ $GC_TYPE == " | ||
+ | if [ $JAVA_VER_MAJOR -ge 17 ]; then | ||
+ | JAVA_OPTS=" | ||
+ | else | ||
+ | echo " | ||
+ | exit 1; | ||
+ | fi | ||
+ | else | ||
+ | echo " | ||
+ | exit 1; | ||
+ | fi | ||
+ | |||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ### byteman | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ################################################## | ||
+ | # Bind Address | ||
+ | ################################################## | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | # Management | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | # Port Offset | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | # Ports | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | # modcluster proxy list | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | |||
+ | ### JBoss Env Setting - Global | ||
+ | # | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ### JBoss Env Setting - Standalone mode | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | JAVA_OPTS=" | ||
+ | |||
+ | ### Custom Settings | ||
+ | # | ||
+ | |||
+ | # anti log4shell | ||
+ | JAVA_OPTS=" | ||
+ | |||
+ | export JAVA_OPTS | ||
+ | |||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | echo " | ||
+ | |||
+ | # EOF | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== JDK 1.4 ~ 11버전을 위한 환경파일 ==== | ||
+ | |||
<WRAP prewrap> | <WRAP prewrap> | ||
줄 167: | 줄 374: | ||
else | else | ||
echo " | echo " | ||
- | exit 0; | + | exit 1; |
fi | fi | ||
줄 393: | 줄 600: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ===== status.sh ===== | ||
+ | <WRAP prewrap> | ||
+ | <code vim status.sh> | ||
+ | #!/bin/sh | ||
+ | ############################################## | ||
+ | # instance | ||
+ | # description : instance start script | ||
+ | # date : 2014-10-07 | ||
+ | # author | ||
+ | ############################################## | ||
+ | ABSOLUTE_PATH=" | ||
+ | PROFILE_PATH=" | ||
+ | DIR_NAME=" | ||
+ | # | ||
+ | |||
+ | . $ABSOLUTE_PATH/ | ||
+ | |||
+ | PID=`ps -ef | grep java | grep " | ||
+ | echo $PID | ||
+ | |||
+ | if [ " | ||
+ | then | ||
+ | echo "JBoss SERVER - [$NODE_NAME] is NOT RUNNING..." | ||
+ | exit 1; | ||
+ | else | ||
+ | echo "JBoss SERVER - [$NODE_NAME] is RUNNING PID : ${PID}" | ||
+ | exit 0; | ||
+ | fi | ||
+ | </ | ||
+ | </ | ||
+ | |||
===== multicast_send.sh ===== | ===== multicast_send.sh ===== |