Mac上安装tomcat

1.下载tomcat后解压到/usr/local/Cellar目录下
2.执行bin目录下的命令启动tomcat

/usr/local/Cellar/apache-tomcat-8.5.41/bin/startup.sh

3.若提示Permission denied,则更改权限

sudo chmod 777 /usr/local/Cellar/apache-tomcat-8.5.41/bin/catalina.sh
sudo chmod 777 /usr/local/Cellar/apache-tomcat-8.5.41/bin/startup.sh

4.停止tomcat服务

sudo chmod 777 /usr/local/Cellar/apache-tomcat-8.5.41/bin/shutdown.sh
/usr/local/Cellar/apache-tomcat-8.5.41/bin/shutdown.sh

5.更改整个目录权限

sudo chmod 777 /usr/local/Cellar/apache-tomcat-8.5.41/bin

参考:

https://blog.csdn.net/poppy58/article/details/73477916

你可能感兴趣的:(Mac上安装tomcat)