标签:tar art pat host name .bat alt ctp windows bsp
Tomcat安装还是比较简单的,在Windows和Linux下都是直接解压就可以了。
http://tomcat.apache.org/download-80.cgi
Windows用RAR等解压,Linux用tar -zxvf解压
1)网站根目录:conf目录下的server.xml文件,在<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"></Host>标签中添加:<Context path="" docBase="yourDiretory" debug="0"/>
2)端口:conf目录下的server.xml文件,修改port的值即可<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
bin目录下:
Windows:startup.bat/shutdown.bat
Linux:startup.sh/shutdown.sh
标签:tar art pat host name .bat alt ctp windows bsp
原文地址:http://www.cnblogs.com/lsdb/p/6497964.html