先下載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 ,並添加
安裝成功
添加防火牆端口
遠程訪問