Environment: rhel6.5 Tomcat:apache-tomcat-8.0.30.tar jdk:jdk-8u65-linux-x64.rpm
Download Tomcat Address: http://tomcat.apache.org/download-80.cgi
Download JDK Address: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Before installing Tomcat, you need to install the JDK first:
RPM-IVH jdk-8u65-linux-x64.rpm//rpm Installing the JDK
RPM-PQL jdk-8u65-linux-x64.rpm//View the location of the JDK installation
Vim/etc/profile//At the end of the Add, set the environment variable for the JDK export Java_home=/usr/java/jdk1.8.0_65export java_bin=/usr/java/jdk1.8.0_65/ Binexport Path=${java_home}/bin: $PATHexport Classpath=.:${java_home}/lib/dt.jar:${java_home}/lib/tools.jar
Source/etc/profile//Activation configuration
Java-version//View the version of the JDK
650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M02/79/72/wKiom1aRRyWxJQFLAAFJb3K0Mfc518.jpg "title=" a.jpg " alt= "Wkiom1arrywxjqflaafjb3k0mfc518.jpg"/>
Install Tomact:
TAR-XVF apache-tomcat-8.0.30.tar.gz//Decompression Tomcat pack
CD apache-tomcat-8.0.30//Enter into the unzip directory
./bin/startup.sh//Start Tomcat
Tail-f logs/catalina.out//view Tomcat boot information
At this point, the Tomcat installation is complete, followed by update tuning content.
This article from "Experience from pain" blog, declined reprint!
Install tomcat8.0 under Linux