{"id":5599,"date":"2022-12-06T12:48:00","date_gmt":"2022-12-06T03:48:00","guid":{"rendered":"\/blog\/?p=5599"},"modified":"2023-09-21T09:26:23","modified_gmt":"2023-09-21T00:26:23","slug":"apache-tomcat-%ec%9c%88%eb%8f%84%ec%9a%b0%ec%9a%a9-%ec%84%a4%ec%b9%98-%ec%8a%a4%ed%81%ac%eb%a6%bd%ed%8a%b8","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=5599","title":{"rendered":"apache tomcat \uc708\ub3c4\uc6b0\uc6a9 \uc124\uce58 \uc2a4\ud06c\ub9bd\ud2b8"},"content":{"rendered":"\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"bash\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@ECHO OFF\nREM =======================================\nREM =\nREM = \uc708\ub3c4\uc6b0\uc6a9 apache-tomcat \uc124\uce58 \uc2a4\ud06c\ub9bd\ud2b8\nREM = (.zip\uc73c\ub85c \ubc30\ud3ec\ub41c \ubc84\uc804)\nREM =\nREM = \uc0ac\uc6a9 \ubc29\ubc95:\nREM = install_apache-tomcat.bat install\nREM = install_apache-tomcat.bat uninstall\nREM =\nREM =======================================\nCHCP 65001 1> NUL 2> NUL\nCLS\n\nREM ---------------------------------------\nREM - \uc11c\ube44\uc2a4 \uba85\uacfc \uc790\ubc14\ud648 \uc124\uc815\nREM ---------------------------------------\nSET \"SSC_VERSION=2310\"\nSET \"DEFAULT_SERVICE_NAME=tomcat9\"\nSET \"SERVICE_NAME=ssc_%SSC_VERSION%\"\nSET \"JAVA_HOME=c:\\PortableApps\\jdk-11.0.16.1\"\n\nREM ---------------------------------------\nREM - \ucd5c\uc18c\/\ucd5c\ub300 Java Heap \uba54\ubaa8\ub9ac \uc124\uc815\nREM ---------------------------------------\nSET \"JvmMs=1024\"\nSET \"JvmMx=8192\"\n\nREM ---------------------------------------\nREM - \uae30\ubcf8 \uc0c1\uc218 \uc815\uc758\nREM ---------------------------------------\nSET \"CURRENT_DIR=%CD%\"\nSET \"TIMESTAMP_VAL=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%_%TIME:~0,2%%TIME:~3,2%%TIME:~6,2%\"\nSET \"TIMESTAMP_VAL=%TIMESTAMP_VAL: =0%\"\n\nIF NOT EXIST \"%CURRENT_DIR%\\bin\\catalina.bat\" (\n  ECHO \"%CURRENT_DIR%\\bin\\catalina.bat\" not found.\n  EXIT \/B 1\n)\nCD \/D \"%CURRENT_DIR%\\bin\"\n\nREM ---------------------------------------\nREM - install\/uninstall \ud30c\ub77c\ubbf8\ud130 \ucc98\ub9ac\nREM ---------------------------------------\nSET ARGC=0\nFOR %%X IN (%*) DO SET \/A ARGC+=1\nIF %ARGC% LSS 1 GOTO LABEL_USAGE\n\nIF \"%1\"==\"install\" (\n  ECHO YOUR FIRST PARAM IS \"%1\"\n  ECHO.\n  PAUSE\n  GOTO LABEL_INSTALL\n)\n\nIF \"%1\"==\"uninstall\" (\n  ECHO YOUR FIRST PARAM IS \"%1\"\n  ECHO.\n  PAUSE\n  GOTO LABEL_UNINSTALL\n)\n\nREM ---------------------------------------\nREM - \uc0ac\uc6a9\ubc95 \ucd9c\ub825 \ud6c4 \uc885\ub8cc\nREM ---------------------------------------\n:LABEL_USAGE\nECHO Usage:\nECHO   %0 ^&lt;install\/uninstall^>\nCD \/D %CURRENT_DIR%\nPAUSE\nEXIT \/B 1\n\nREM ---------------------------------------\nREM - \uc124\uce58 \ud504\ub85c\uc138\uc2a4\nREM ---------------------------------------\n:LABEL_INSTALL\nCALL SERVICE.BAT install \"%SERVICE_NAME%\"\nECHO ^&lt;%%>..\\webapps\\ROOT\\test.jsp\nECHO    out.println(\"Aapache-Tomcat %SERVICE_NAME% Installed.\");>>..\\webapps\\ROOT\\test.jsp\nECHO %%^>>>..\\webapps\\ROOT\\test.jsp\nCALL :FUNC_CREATE_SHORTCUT \"%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Apache Tomcat (%SERVICE_NAME%).lnk\" \"%CD%\\%DEFAULT_SERVICE_NAME%w.exe\" \"\/\/ES\/\/%SERVICE_NAME%\" \"-\" 1 \"%CD%\"\nCALL :FUNC_CREATE_SHORTCUT \"%PUBLIC%\\Desktop\\Apache Tomcat (%SERVICE_NAME%).lnk\" \"%CD%\\%DEFAULT_SERVICE_NAME%w.exe\" \"\/\/ES\/\/%SERVICE_NAME%\" \"-\" 1 \"%CD%\"\nECHO.\nECHO Please add \"-Dfortify.home=D:\\ssc_data\\ssc_%SSC_VERSION%\" to Java Options.\nPAUSE\nCD \/D %CURRENT_DIR%\nGOTO :EOF\n\nREM ---------------------------------------\nREM - \uc0ad\uc81c \ud504\ub85c\uc138\uc2a4\nREM ---------------------------------------\n:LABEL_UNINSTALL\nECHO CALL SERVICE.BAT uninstall \"%SERVICE_NAME%\"\nCALL SERVICE.BAT uninstall \"%SERVICE_NAME%\"\nDEL \/F \/Q \"%ALLUSERSPROFILE%\\Microsoft\\Windows\\Start Menu\\Programs\\Apache Tomcat (%SERVICE_NAME%).lnk\"\nDEL \/F \/Q \"%PUBLIC%\\Desktop\\Apache Tomcat (%SERVICE_NAME%).lnk\"\nPAUSE\nCD \/D %CURRENT_DIR%\nGOTO :EOF\n\nREM -----------------------------------------------------------\nREM \ubc14\ub85c\uac00\uae30\ub97c \ub9cc\ub4dc\ub294 \ud568\uc218\nREM\nREM CALL :FUNC_CREATE_SHORTCUT &lt;\uc778\uc218>\nREM \uc778\uc218  %1: \ubc14\ub85c\uac00\uae30 \ud30c\uc77c\uba85\nREM       %2: \ud0c0\uac9f \ud30c\uc77c\uba85\nREM       %3: Arguments or \"-\"\nREM       %4: \uc544\uc774\ucf58 \ud30c\uc77c\uba85 or \"-\"\nREM       %5: \uc708\ub3c4\uc6b0 \uc2a4\ud0c0\uc77c or \"-\"\nREM       %6: \uc2dc\uc791 \ub514\ub809\ud1a0\ub9ac or \"-\"\nREM -----------------------------------------------------------\n:FUNC_CREATE_SHORTCUT\n  SET TMP_SCRIPT=\"%TEMP%\\%RANDOM%-%RANDOM%-%RANDOM%-%RANDOM%.vbs\"\n  ECHO Set oWS = WScript.CreateObject(\"WScript.Shell\") > %TMP_SCRIPT%\n  ECHO sLinkFile = %1 >> %TMP_SCRIPT%\n  ECHO Set oLink = oWS.CreateShortcut(sLinkFile) >> %TMP_SCRIPT%\n  ECHO oLink.TargetPath = %2 >> %TMP_SCRIPT%\n  IF %3 NEQ \"-\" (\n    ECHO oLink.Arguments = %3 >> %TMP_SCRIPT%\n  )\n  IF %4 NEQ \"-\" (\n    ECHO oLink.IconLocation = %4 >> %TMP_SCRIPT%\n  )\n  REM 1: Default, 3:Maximized Window, 7:Minimized Window\n  IF %5 NEQ \"-\" (\n    ECHO oLink.WindowStyle = %5 >> %TMP_SCRIPT%\n  )\n  IF %6 NEQ \"-\" (\n    ECHO oLink.WorkingDirectory = %6 >> %TMP_SCRIPT%\n  )\n  ECHO oLink.Save >> %TMP_SCRIPT%\n  CSCRIPT \/NOLOGO %TMP_SCRIPT%\n  DEL \/F \/Q %TMP_SCRIPT%\nEXIT \/B 0<\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[66,15],"tags":[],"class_list":["post-5599","post","type-post","status-publish","format-standard","hentry","category-computing_fortify","category-computing_tools"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5599"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/5599\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}