1、安装Tomcat,终端输入
brew install tomcat
2、启动Tomcat,终端输入
sudo sh startup.sh
3、浏览器输入localhost:8080,正常可以看到的内容应该是
可是本人看到的却是
排查了很久发现是startup.sh的权限问题,于是终端进入/usr/local/Cellar/tomcat/9.0.10/libexec/bin路径下,执行命令chmod 777 *.sh
再次输入命令sudo sh startup.sh
启动tomcat,localhost:8080就可以正常访问!
另外,Tomcat的关闭命令为sh ./shutdown.sh
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有