linux环境安装tomcat
?????????????? connectionTimeout="20000"
?????????????? redirectPort="8443" />?? -------------------port是访问端口(默认8080)
<Host name="localhost"? appBase="webapps"
??????????? unpackWARs="true" autoDeploy="true">------------------appBase? 默认访问路径
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>----------------------最新访问地址
访问页面具体存放位置:/opt/apps/apache-tomcat-7.0.40/webapps/ROOT
在服务器上测试默认页面
命令:wget http://xxx.xxx.xxx.xx:8081
Connecting to xxx.xxx.xxx.xx:8081... connected.
HTTP request sent, awaiting response... 200 OK
Length: 20 [text/html]
Saving to: `index.html.1'
100%[===========================================================================================>] 20????????? --.-K/s?? in 0s?????
2013-07-03 21:06:46 (1.00 MB/s) - `index.html.1' saved [20/20]
证明能正常访问
ok 安装完成
?
?
?