下载tomcat
这里以版本10.0.22为例
解压存至本地另存为apache-tomcat-10.0.22,放在你想存放的目录里面,我这里以目录/Users/yourusername/apache-tomcat-10.0.22为例子
打开Terminal(终端),进入apache-tomcat所在目录
cd /Users/yourusername/apache-tomcat-10.0.22
给bin下的*.sh文件添加可执行权限
sudo chmod 755 ./bin/*.sh
进入bin目录
cd bin
启动服务
./startup.sh
浏览器输入http://localhost:8080即可查看效果



