Because I use the centos5.8 minimal, first install the JDK, go to the official website to download http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
wget http://download.oracle.com/otn-pub/java/jdk/8u101-b13/jdk-8u101-linux-i586.rpm? authparam=1473765078_568f7ad360b93702629b900eff741527
Then install RPM-IVH xxxx.rpm by default
The default installation path is the/usr/java/directory
Now you need to configure the default environment variables, modify the/etc/profile, append later
650) this.width=650; "Src=" Http://s5.51cto.com/wyfs02/M00/87/39/wKiom1fX4-bARMjgAABJJaUhJqI815.png-wh_500x0-wm_3 -wmp_4-s_3516365203.png "title=" Qq20160913193134.png "alt=" Wkiom1fx4-barmjgaabjjauhjqi815.png-wh_50 "/>
Then direct java-version to see that the Java JDK has been successfully installed
Then install Tomcat
Download Tomcat, I chose Tomcat7 http://tomcat.apache.org/download-70.cgi
Download and extract the downloaded files to/USR/LOCAL/TOMCAT7
Then find the bin directory and execute startup.sh.
The complete path is/usr/local/tomcat7/bin/startup.sh
The default port for Tomcat is 8080
CentOS 6.8 Installation Tomcat7