download tomcat using brew code example
Example 1: install tomcat on mac brew
brew services start tomcat
Example 2: Installing Apache Tomcat on MacOS Mojave using Homebrew
brew services stop tomcat
Example 3: install tomcat on mac brew
catalina -h