brew install tomcat 8 code example Example 1: install tomcat on mac brew brew services start tomcat Example 2: install tomcat on mac brew catalina -h