1. to use JDK to install JDK Tomcat, see: JDK. You can use the wget command to download the SDK from Linux. For example: # cd/ho
1. install JDK
The JDK environment is required for Tomcat.
JDK installation details refer to: http://blog.csdn.net/irokay/article/details/50528604
2. download Tomcat
Access the http://tomcat.apache.org and select the appropriate version of Tomcat download. You can use the wget command to download the SDK from Linux. For example:
# cd /home/sw# wget http://apache.fayea.com/tomcat/tomcat-7/v7.0.57/bin/apache-tomcat-7.0.57.tar.gz
3. go to the/opt directory and unzip and install tomcat.
# cd /opt# tar zxf /home/sw/apache-tomcat-7.0.57.tar.gz# ln -s ./apache-tomcat-7.0.57/ ./tomcat7
4. configure tomcat
If you need to change the port 8080, go to/opt/tomcat7/conf, Open server. xml, and change port 8080 to the desired port.
If you want to change the JVM settings (JAVA_OPTS) to solve or prevent memory overflow (OOO), refer to the article:
Http://blog.csdn.net/irokay/article/details/50528732
5. start Tomcat and test
# cd /opt/tomcat7/bin# ./catalina.sh start
To view the startup log, run the following command:
# tail -f ../logs/catalina.out
You can use Ctrl + C to terminate the tail-f command at any time.