Homebrew on Mac allows you to use Tomcat right away without Eclipse

Are you having trouble setting up your Tomcat preferences?

When setting up Tomcat environment on Mac, download the Tomcat tar.gz or zip file from the official website and set various paths for java_home and catalina_home. Isn't it annoying and annoying?

I hated it once and turned to Eclipse. But if there was a problem with Eclipse, I thought it would be difficult to find the problem again.

So, I saw the simplest method of introducing Tomcat this time, so I will introduce it.

Source

Installing Apache Tomcat on MacOS Mojave using Homebrew(2019/8/29) https://medium.com/@fahimhossain_16989/installing-apache-tomcat-on-macos-mojave-using-homebrew-28ce039b4b2e

Setting method

See from the heading "Installing and Running Apache Tomcat on Mac OS using Homebrew". (I omitted the parts that say cask etc.)

Step1: Install tomcat

Run the following command in the terminal to install Tomcat.

brew update
brew install tomcat

Step2: Start Tomcat

To start (stop) automatically using Homebrew command, use the following command

brew services start tomcat
brew services stop tomcat

To start (stop) Tomcat manually, use the following command

catalina run
catalina stop

Now you can start Tomcat.

Last login: Thu Jul 30 22:52:31 on ttys001
AkihironoMacBook-puro% catalina run
Using CATALINA_BASE:   /usr/local/Cellar/tomcat/9.0.37/libexec
Using CATALINA_HOME:   /usr/local/Cellar/tomcat/9.0.37/libexec
Using CATALINA_TMPDIR: /usr/local/Cellar/tomcat/9.0.37/libexec/temp
Using JRE_HOME:        /usr/local/opt/openjdk
Using CLASSPATH:       /usr/local/Cellar/tomcat/9.0.37/libexec/bin/bootstrap.jar:/usr/local/Cellar/tomcat/9.0.37/libexec/bin/tomcat-juli.jar
NOTE: Picked up JDK_JAVA_OPTIONS:  --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
.
.
.
.
 31-Jul-2020 00: 08: 31.077 Info [main] org.apache.catalina.startup.HostConfig.deployDirectory Directory [/usr/local/Cellar/tomcat/9.0.37/libexec/webapps/host-manager] Web Application deployment was completed in [18] ms.
 31-Jul-2020 00: 08: 31.080 Info [main] org.apache.coyote.AbstractProtocol.start Protocol handler ["http-nio-8080"] has started.
 31-Jul-2020 00: 08: 31.090 Information [main] org.apache.catalina.startup.Catalina.start
 Server startup [829] ms

Recommended Posts

Homebrew on Mac allows you to use Tomcat right away without Eclipse
Install tomcat + eclipse on mac
Use completion in Eclipse on mac
Steps to install Maven on Mac and use it in Eclipse
A memorandum on how to use Eclipse
How to use Apache Derby on Eclipse
How to install Eclipse (Photon) on Mac
The right way to see the tomcat source in eclipse
I want to use NetBeans on Mac → I can use it!
How to start tomcat local server without using eclipse
[For beginners] Install JDK + Eclipse on Mac (without Pleiades All-in-One)
Notes on installing eclipse with Homebrew on Mac OS High Sierra
How to use Eclipse Debug_Shell
How to uninstall if you have updated to Java 9 on your Mac
I just want to write Java using Eclipse on my Mac