一、官网下载tomcat
二、上传Linux后台解压到/usr/local/tomcat8 (目录可以自己任意创建)
三、tar zxvf ****.tar.gz解压你上传的tomcat的包
四、执行:systemctl stop firewalld 关闭防火墙
五、打开网页输入http://192.168.1.1:8080查看配置是否成功
六、如果提示Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program
- vi setclasspath.sh
- export JAVA_HOME=/usr/local/java/jdk1.8.0_202
- export JRE_HOME=/usr/local/java/jdk1.8.0_202/jre
微信扫描下方的二维码阅读本文