tomcat安装目录 /usr/local/tomcat7
静态文件默认在webapps目录中就可以使用了
tomcat使用
配置:
conf/server.xml
设置端口号:
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
conf/web.xml
设置默认启动页面:
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>