打开tomcat官网下载
https://tomcat.apache.org/download-80.cgi
[root@jiaxin-ceshi local]# cd /usr/local/src/
[root@jiaxin-ceshi src]# wget http://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.0.53/bin/apache-tomcat-8.0.53.tar.gz
[root@jiaxin-ceshi src]# tar xf apache-tomcat-8.0.53.tar.gz
[root@jiaxin-ceshi src]# cd apache-tomcat-8.0.53
[root@jiaxin-ceshi apache-tomcat-8.0.53]# ./bin/startup.sh
报错 没有安装jDK
现在去下载jdk
jdk官网
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
[root@jiaxin-ceshi src]# wget http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-linux-x64.tar.gz?AuthParam=1540361518_b0a0fe4822488595801087e281a3b6fc
下载JDK
[root@jiaxin-ceshi src]# mv jdk-8u191-linux-x64.tar.gz?AuthParam=1540361518_b0a0fe4822488595801087e281a3b6fc jdk-8u191-linux-x64.tar.gz
[root@jiaxin-ceshi src]# tar xf jdk-8u191-linux-x64.tar.gz
[root@jiaxin-ceshi src]# mv jdk1.8.0_191/ jdk
[root@jiaxin-ceshi src]# pwd
/usr/local/src
[root@jiaxin-ceshi src]# vim /etc/profile //添加环境变量
JAVA_HOME=/usr/local/src/jdk
JRE_HOME=/usr/local/src/jdk/jre
PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin
CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar:$JRE_HOME/lib
export JAVA_HOME JRE_HOME PATH CLASSPATH
[root@jiaxin-ceshi src]# source /etc/profile
[root@jiaxin-ceshi src]# java -serviom
[root@jiaxin-ceshi src]# cd /usr/local/src/apache-tomcat-8.0.53
[root@jiaxin-ceshi apache-tomcat-8.0.53]# ./bin/startup.sh
打开浏览器:8080
成功了哈~!