One - One Code All

Blog Content

Mac 上 brew 安装Tomcat

Linux-Mac Java   2019-02-02 17:09:09

保证brew命令能够正常使用;


搜索tomcat是否存在:

brew search tomcat


安装tomcat:

brew install tomcat


检查是否安装成功:

catalina -h


运行tomcat:

catalina run


Tomcat的默认端口是8080,如果运行成功可通过http://localhost:8080访问


webapp的根目录(CATALINA_HOME)为:/usr/local/Cellar/tomcat/7.0.33/libexec/webapps/ROOT/




上一篇:idea 2019的plugins market无法链接到网络的问题解决办法
下一篇:kubernetes无状态服务和有状态服务

The minute you think of giving up, think of the reason why you held on so long.