1. 先进行权限修改:终端输入sudo chmod 755 Library/tomcat/bin/*.sh,输入密码asdfghj
2. 进入bin目录: cd /Users/yurong333333/Library/Tomcat/bin/
3. 开启:sudo sh startup.sh
4. 关闭:sudo sh shutdown.sh
开启:
1. 先进行权限修改:终端输入sudo chmod 755 Library/tomcat/bin/*.sh,输入密码asdfghj
2. 进入bin目录: cd /Users/yurong333333/Library/Tomcat/bin/
3. 开启:sudo sh startup.sh
4. 关闭:sudo sh shutdown.sh
查看tomcat是否开启
浏览器打开http://localhost:8080查看
原文:https://www.cnblogs.com/YuRong3333/p/14444092.html