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/




上一篇:Docker build ubuntu无法执行apt-get update, Failed to fetch,Temporary failure resolving archive.ubuntu.com
下一篇:macbook 编译时出现stdio.h file not found 的解决办法,use Software Update to install updates

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