首先,进入tomcat目录(:/usr/local/jakarta-tomcat-5.0.28/conf)
sudo vim server.xml
在如下添加红色部分
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
<Connector port="8080"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true"
URIEncoding="UTF-8或GBK"/>
<!-- Note : To disable connection timeouts, set connectionTimeout value
to 0 -->
保存,重启tomcat即可
注意统一资源标识符 (Uniform Resource Identifier, URI)
统一资源定位符 (Uniform Resource Locator, URL)
posted on 2008-09-03 14:32
无声 阅读(913)
评论(0) 编辑 收藏 所属分类:
职场生活