I am learning JSP programing which requires Tomcat. I followed some tutorials but failed to install successfully(Probably some step is not clear match to my situation)
Then I found out you can install easily by this command line:
brew install tomcat
It looks install is successful,
My challenge is after install, I don't know where it is on my hard drive. Therefore, can't configure it in IntelliJ.
My question is:
How do I find out where Tomcat is installed by brew on MacOS?
Thanks!
Thanks! I know the answer has been given, but here's the way I found out: after brew install tomcat I did catalina version and found that CATALINA_HOME was set to /usr/local/Cellar/tomcat/<tomcat-version>/libexec .
Just go to start and then type tomcat. If it is installed it will give you the directory where it is installed. Then you can select that path and run it from command prompt. Example if tomcat is installed in C:\Programfile\tomcat.
In the bin folder, the executable programs are contained, including scripts to start and stop the Tomcat instance. The conf folder contains a set of XML and property configuration file. The file server. xml represents Tomcat's main configuration file.
brew ls tomcat
This command will show the directory of brew package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With