周超能
2022-03-03 12:14
采纳率: 100%
浏览 52

腾讯云部署Tomcat启动公网ip访问不到,求看看

部署了Jdk还有tomcat也启动了,但是用公网ip加8080,访问不到我的Tomcat

1Tomcat已启动,这个启动报告:
[root@VM-8-4-centos bin]# ls
bootstrap.jar ciphers.sh daemon.sh shutdown.bat tomcat-native.tar.gz
catalina.bat commons-daemon.jar digest.bat shutdown.sh tool-wrapper.bat
catalina.sh commons-daemon-native.tar.gz digest.sh startup.bat tool-wrapper.sh
catalina-tasks.xml configtest.bat setclasspath.bat startup.sh version.bat
ciphers.bat configtest.sh setclasspath.sh tomcat-juli.jar version.sh
[root@VM-8-4-centos bin]# ./startup.sh
Using CATALINA_BASE: /root/user/java/apache-tomcat-8.5.73
Using CATALINA_HOME: /root/user/java/apache-tomcat-8.5.73
Using CATALINA_TMPDIR: /root/user/java/apache-tomcat-8.5.73/temp
Using JRE_HOME: /root/user/java/jdk1.8.0_321
Using CLASSPATH: /root/user/java/apache-tomcat-8.5.73/bin/bootstrap.jar:/root/user/java/apache-tomcat-8.5.73/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.
2:jdk已经部署好了:
[root@VM-8-4-centos bin]# java -version
openjdk version "1.8.0_322"
OpenJDK Runtime Environment (build 1.8.0_322-b06)
OpenJDK 64-Bit Server VM (build 25.322-b06, mixed mode)

3 javac:
[root@VM-8-4-centos bin]# javac -version
-bash: /root/user/java/jdk1.8.0_321/bin/javac: Permission denied

4:腾讯云的防火墙已开启:

img

5:使用公网ip加8080无法访问到我的Tomcat,不太理解:

6:使用vim修改了我的tomcat端口号为8080
7:访问就是一片白

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

1条回答 默认 最新

相关推荐 更多相似问题