1.命令
sudo sh /Applications/Tomcat7.0/bin/startup.sh
sudo chmod 777 /Applications/Tomcat7.0/bin/*.sh
chmod 777 *.sh
sudo sh startup.sh
2.配置
在context.xml中改
<Context reloadable="true">
在server.xml改
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
在tomcat-users.xml中改
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="tomcat" password="tomcat" roles="manager-gui,admin-gui"/>
</tomcat-users>