I tried tomcat

Introduction

Notes on installing Tomcat 9

environment

Preparation

Download tomcat

* Unzip to any location (here, it is assumed that you unzipped to C: \ dev \ apache-tomcat-9.0.5)

Setting

Create CATALINA_BASE

Here, create a location for the instance that runs on Tomcat.


Like this

setenv.bat settings

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

Try to move

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-up

Start startup.bat

Successful startup if you access http: // localhost: 8080 and connect

Stop

Start shutdown.bat

Recommended Posts

I tried tomcat
I tried Spring.
I tried youtubeDataApi.
I tried refactoring ①
I tried FizzBuzz.
I tried JHipster 5.1
I tried using OpenCV with Java + Tomcat
I tried running Autoware
I tried using Gson
I tried QUARKUS immediately
I tried using TestNG
I tried using Galasa
I tried node-jt400 (Programs)
I tried node-jt400 (execute)
I tried node-jt400 (Transactions)
I tried to set tomcat to run the Servlet.
I tried node-jt400 (Environment construction)
I tried DI with Ruby
I tried node-jt400 (IFS write)
I tried node-jt400 (SQL Update)
I tried using azure cloud-init
I tried Spring State machine
I tried Drools (Java, InputStream)
I tried Rails beginner [Chapter 1]
I tried the Docker tutorial!
I tried using Apache Wicket
I tried the VueJS tutorial!
I tried node-jt400 (SQL query)
I tried using Java REPL
I tried source code analysis
I tried the FizzBuzz problem
I tried node-jt400 (SQL stream)
I tried node-jt400 (IFS read)
I tried putting XcodeGen + SwiftPM
I tried Rails beginner [Chapter 2]
I tried UPSERT with PostgreSQL.
I tried BIND with Docker
I tried to verify yum-cron
I tried Jets (ruby serverless)
I tried metaprogramming in Java
I tried using anakia + Jing now
I tried Angular tutorial + SpringBoot + PostgreSQL
I tried to chew C # (indexer)
I tried something called recursive search
I tried using Spring + Mybatis + DbUnit
I tried using JOOQ with Gradle
[K8s] I tried communication between pods!
I tried morphological analysis with MeCab
I tried to interact with Java
I tried UDP communication with Java
I tried to explain the method
I tried putting Domino11 in CentOS7
I tried the Java framework "Quarkus"
[Rails] I tried deleting the application
I tried using Java8 Stream API
I tried Java's micro-benchmark tool JMH
I tried using JWT in Java
I tried GraphQL with Spring Boot
I tried to summarize Java learning (1)
I tried to understand nil guard
[Android] I tried using Coordinator Layout.