1、在tomcat官网 下载 Mac 版本的完整 tar.gz文件包。解压拷贝到任意目录。
2、修改目录权限
到终端输入
sudo chmod XXX/Tomcat/bin/*.sh
3、启动Tomcat
进入tomcat bin 目录,输入sudo sh startup.sh 启动
执行启动的时候出现如下错误:
如果输入 sh startup.sh 报错
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
解决方法:
在tomcat 的bin目录下 执行这条命令
chmod +x *.sh
再次执行 sh catalina.sh通过,
如果输入 sh startup.sh 报错
Cannot find ./catalina.sh
The file is absent or does not have execute permission
This file is needed to run this program
解决方法:
在tomcat 的bin目录下 执行这条命令
chmod +x *.sh
再次执行 sh catalina.sh通过,