参考:http://blog.csdn.net/start313/article/details/25232131
权限问题参考:http://blog.csdn.net/han_dongwei/article/details/8240914
1、官网下载 http://tomcat.apache.org,下载第一个
Core:zip (pgp, md5, sha1)
解压到/Library,将文件夹改名为Tomcat。
2、命令行
cd /Library/Tomcat/bin 进入文件夹
sudo sh startup.sh开启服务;
打开http://localhost:8080可以正常load出则说明配置成功
如果出现权限问题:
The file is absent or does not have execute permission
This file is needed to run this program
输入 chmod 777 *.sh
再开启服务;
sudo sh startup.sh关闭服务;
网友评论