文章目录
下载
bash
cd ~/Library
tar -zxvf /Users/用户名/Downloads/apache-tomcat-7.0.99.tar.gz
mv apache-tomcat-7.0.99 ~/Library/tomcat
配置环境变量
bash
vi ~/.bash_profile
shell
export TOMCAT_HOME=/Users/用户名/Library/tomcat
export PATH=$PATH:$TOMCAT_HOME/bin
修改权限
bash
cd tomcat/bin
sudo chmod 755 *.sh
启动和关闭
bash
startup.sh # 启动
shutdown.sh # 关闭