先下载JDK和tomcat到本地
地址为http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
http://tomcat.apache.org/
然后通过xftp上传至新建目录下,这里为usr/java
和usr/java/Tomcat
[root@iznnm688rsm61bz ~]# cd /usr
[root@iznnm688rsm61bz usr]# mkdir java
[root@iznnm688rsm61bz usr]# mkdir java/Tomcat
[root@iznnm688rsm61bz usr]# ls
bin etc games include java lib lib64 libexec local sbin share src tmp
[root@iznnm688rsm61bz usr]# cd java
[root@iznnm688rsm61bz java]# ls
Tomcat
[root@iznnm688rsm61bz java]# cd Tomcat
[root@iznnm688rsm61bz Tomcat]# ls
apache-tomcat-8.5.35.tar.gz
[root@iznnm688rsm61bz Tomcat]# cd ..
[root@iznnm688rsm61bz java]# ls
jdk-8u191-linux-x64.tar.gz Tomcat
解压到java/jdk
上图拼写错误为export
验证jdk
安装Tomcat
# tar zxvf apache-tomcat-8.5.35.tar.gz -C /usr/java/Tomcat
配置路径
# vi setclasspath.sh ,并添加
安装成功
添加防火墙端口
远程访问