Notes on installing Tomcat 9
Here, create a location for the instance that runs on Tomcat.
In order to run Tomcat, it is necessary to set environment variables of Windows etc. However, by creating a file called setenv.bat, it can be set without changing the OS settings, so I created it (Here, it is assumed that it was created in C: \ dev \ apache-tomcat-9.0.5 \ bin \ setenv.bat)
setenv.bat
set JAVA_HOME=C:\dev\bin\jdk\jdk1.8.0_65
set CATALINA_HOME=C:\dev\apache-tomcat-9.0.5
set CATALINA_BASE=C:\dev\tomcat-instance1
set CATALINA_OPTS=-Xms256m -Xmx512m -XX:MaxMetaspaceSize=128M -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled
JAVA_HOME… Specify Java to be used to start Tomcat CATALINA_HOME… Specify the location where you answered Tomcat CATALINA_BASE… Specify the instance to run on Tomcat CATALINA_OPTS… JVM options to specify for Tomcat
It should work for the time being with the settings so far, so try starting and stopping The start / stop bat is under the bin of Tomcat (here C: \ dev \ apache-tomcat-9.0.5 )
Start startup.bat
Successful startup if you access http: // localhost: 8080 and connect
Start shutdown.bat
Recommended Posts