16.1 Tomcat Introduction
16.2 Installing the JDK
Official website http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Use Xftp to copy and place to/usr/local/src/
#cd/usr/local/src/
#tar ZXVF jdk-8u144-linux-x64.tar.gz
#du-sh jdk1.8.0_114
#mv jdk1.8.0_114/usr/local/jdk1.8
#vi/etc/profile//Last surface increase
java_home=/usr/local/jdk1.8/
Java_bin=/usr/local/jdk1.8/bin
Jre_home=/usr/local/jdk1.8/jre
Path= $PATH:/usr/local/jdk1.8/bin;/usr/local/jdk1.8/jre/bin
Classpath=/usr/local/jdk1.8/jre/lib;/usr/local/jdk1.8/lib;/usr/local/jdk1.8/jre/lib/charsets.jar
#source/etc/profile
#java-version//If the display is not 1.8.0_144, search, whether the other version has been installed #rpm-qa | grep openjdk, search, uninstall can;
16.3 Installing Tomcat
#cd/USR/LOCAL/SRC
#wget http://apache.fayea.com/tomcat/tomcat-8/v8.5.20/bin/apache-tomcat-8.5.20.tar.gz
#tar zxvf apache-tomcat-8.5.20.tar.gz
#mv Apache-tomcat-8.5.20/usr/local/tomcat
Start tomcat,#/usr/local/tomcat/bin/startup.sh
#ps aux | grep Tomcat
#netstat-LNTP | grep java
Turn off the firewall and view the Web page
#systemctl Stop Firewalld
#systemctl Disable FIREWALLD
#iptables NVL
Close the service process with the command #/usr/local/tomcat/bin/shutdown.sh
Extended
Java Container comparison http://my.oschina.net/diedai/blog/271367
Http://www.360doc.com/content/11/0618/21/16915_127901371.shtml
Relationship between Java EE, J2SE, EJB, JavaBean, Serverlet, JSP http://bbs.csdn.net/topics/50015576
Tomcat Server.xml Configuration Detailed http://blog.csdn.net/yuanxuegui2008/article/details/6056754
Tomcat Common Database connection method http://wjw7702.blog.51cto.com/5210820/1109263
Linux study notes 14 weeks four lessons (May 14)