1. First install JDK, decompress jdk-7u17-linux-x64.tar.gz to the/OPT directory, configure environment variables, and add the following content at the end of/etc/profile.
JAVA_HOME=/opt/jdk1.7.0_17export JAVA_HOMEPATH=$JAVA_HOME/bin:$PATH:/usr/local/swftools/binexport PATH
2、decompress apache-tomcat-6.0.41.tar.gz to/OPT directory
3. modify the configuration file Apache-Tomcat-6.0.41/bin of the Tomcat containerCatalina. Sh, Add the following content.
JAVA_OPTS="-Xms256m -Xmx512m -Xss1024K -XX:PermSize=128m -XX:MaxPermSize=256m"
4. modify the configuration file Apache-Tomcat-6.0.41/conf of the Tomcat containerServer. xml, Add uriencoding = "UTF-8" at the end of the <connector> tag ".
Tomcat defaultsWestern European languageISO-8859-1For URL Decoding, The ISO-8859-1 does not include Chinese characters, so that Chinese characters can not be correctly parsed, so it needs to be changed to UTF-8.
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" URIEncoding="UTF-8"/>
5. ModifyIndex.htmlFile, remove all content in the
<script type="text/javascript">window.location.href = "/5201351";</script>
6. decompress the 5201351 package to the webapps directory, that is, there must be a 5201351 directory under the webapps Directory, which stores the website content.
Tomcat Application Deployment record