mac m1 安装tomcat
mac m1 安装tomcat
- 下载tomcat zip包https://tomcat.apache.org/download-90.cgi
- 解压到某个目录
/Users/benjie/software/apache-tomcat-9.0.74
- 配置环境变量
# tomcat config
export TOMCAT_HOME=/Users/benjie/software/apache-tomcat-9.0.74
export PATH=$PATH:$TOMCAT_HOME/bin
- 进入目录
/Users/benjie/software/apache-tomcat-9.0.74/bin
,赋予权限sudo chmod 755 *.sh
- 测试是否安装成功;
startup.sh
shutdown.sh