16.1 Tomcat介绍
16.2 安装jdk
官网下载地址http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
利用xftp复制放到/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 //最后面增加
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 //若显示的不是1.8.0_144,搜索一下,是否已安装其他版本#rpm -qa | grep openjdk,搜索到的话,卸载即可;
16.3 安装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
启动tomcat,#/usr/local/tomcat/bin/startup.sh
#ps aux | grep tomcat
#netstat -lntp | grep java
关闭防火墙,查看网页
#systemctl stop firewalld
#systemctl disable firewalld
#iptables nvl
关闭服务进程,命令为#/usr/local/tomcat/bin/shutdown.sh
扩展
java容器比较 http://my.oschina.net/diedai/blog/271367
http://www.360doc.com/content/11/0618/21/16915_127901371.shtml
j2ee、j2se、ejb、javabean、serverlet、jsp之间关系http://bbs.csdn.net/topics/50015576
tomcat server.xml配置详解http://blog.csdn.net/yuanxuegui2008/article/details/6056754
tomcat常用数据库连接的方法 http://wjw7702.blog.51cto.com/5210820/1109263