Tomcat配置(修改xml在conf文件夹下)
1修改server.xml(解决HttpGet参数为中文乱码)
在Connector标签最后下加入:URIEncoding="UTF-8"
为:
<Connector port="8888" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
2修改context.xml为:
<Context reloadable="true"><!--reloadable=”true”服务器修改后自动重启,记住产品发布的时候不能增加这句!-->
3增加管理员
例如:
<tomcat-users>
<user username="pmslrxe" password="1311" roles="admin,manager"/>
</tomcat-users>
Windows环境搭建
例子:
1 JAVA_HOME :C:Program FilesJavajdk1.6.0_14
2 CLASSPATH :C:Program FilesJavajdk1.6.0_14lib
3 PATH :C:Program FilesJavajdk1.6.0_14in
4 TOMCAT_HOME :E:Software toolsapache-tomcat-6.0.20
5 CATALINA_HOME :E:Software toolsapache-tomcat-6.0.20
6 CATALINA_BASE :E:Software toolsapache-tomcat-6.0.20