官网:https://tomcat.apache.org/

cd ~/Library tar -zxvf /Users/用户名/Downloads/apache-tomcat-7.0.99.tar.gz mv apache-tomcat-7.0.99 ~/Library/tomcat vi ~/.bash_profile export TOMCAT_HOME=/Users/用户名/Library/tomcat export PATH=$PATH:$TOMCAT_HOME/bin cd tomcat/bin sudo chmod 755 *.sh startup.sh # 启动 shutdown.sh # 关闭 测试:http://localhost:8080/
