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