- 安装Java
- yum install -y java
- 下载tomcat
- 进入 https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.93/bin/复制tomcat的tar包链接
- 进入xshell 输入 wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-9/v9.0.93/bin/apache-tomcat-9.0.93.tar.gz
- 解压tomcat
- tar -xf apache-tomcat-9.0.93.tar.gz -C /app/tools
- 给解压后的目录创建软连接 /app/tools/tomcat
- ln -s /app/tools/apache-tomcat-9.0.93 /app/tools/tomcat
- /app/tools/tomcat/bin/startup.sh 开启
- /app/tools/tomcat/bin/shutdoen.sh 关闭
- ss -lntup |grep java
- 检查Java端口号
- systomctl status firewall.service
- 关闭防火墙
- 访问http://10.0.0.209:8080
你好