Having trouble with #Tomcat’s environment settings? When setting up the environment for Tomcat on Mac, isn’t it bothersome to download the tar.gz or zip file of Tomcat from the official site and set various java_home and catalina_home paths?
I hated once and turned to Eclipse. However, if Eclipse had a problem, I thought it would be difficult to find the problem again.
So, this time I saw the simplest method of introducing Tomcat, so I will introduce it.
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
See under the heading “Installing and Running Apache Tomcat on Mac OS using Homebrew”. (I skipped the part where “cask” is written.)
Step1: Install Tomcat
Run the following command in a terminal to install Tomcat.
brew update brew install tomcat
Step2: Start Tomcat
If you want 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] Web in org.apache.catalina.startup.HostConfig.deployDirectory directory [/usr/local/Cellar/tomcat/9.0.37/libexec/webapps/host-manager] Application deployment completed in  ms. 31-Jul-2020 00:08:31.080 Info [main] Started org.apache.coyote.AbstractProtocol.start protocol handler ["http-nio-8080"]. 31-Jul-2020 00:08:31.090 Info [main] org.apache.catalina.startup.Catalina.start Start server ms