请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

服务器拒绝访问

我在需要连接上服务器的时候服务器拒绝访问,但是Xshell和filezilla都能正常的链接上云服务器,然后我就去查看tomcat的日志文件,最开始是报error in opening zip file,我删除了以往的日志文件后,就正常启动tomcat,但是服务器还是拒绝访问,服务器是正常开启的,安全组也是全部开启的,但是就是拒绝访问,无论是网页访问,还是微信开发者工具里的访问
图片描述
jdbc.properties
图片描述
图片描述

正在回答 回答被采纳积分+3

5回答

Micejian 2023-02-20 12:30:01

是不是重启云端防火墙把端口转发重置了

0 回复 有任何疑惑可以回复我~
提问者 啊jimes 2019-12-08 23:13:11

https://img1.sycdn.imooc.com//szimg/5ded11f709eebd9f06370304.jpg

清空了war文件,重启了tomcat,还是不行

防火墙的信息

https://img1.sycdn.imooc.com//szimg/5ded130409cfec9a11090251.jpg

0 回复 有任何疑惑可以回复我~
  • 翔仔 #1
    清空War,单独启动tomcat也访问不了?感觉是环境有问题?可以参考https://blog.csdn.net/qq_42570879/article/details/82862585 试试重新配置一下tomcat,先保证不带项目的tomcat能访问
    回复 有任何疑惑可以回复我~ 2019-12-09 00:22:32
提问者 啊jimes 2019-12-07 23:26:18

我在想线上的tomcat没有问题,就是本地的配置改变了所以就访问不了了,但是本地没有问题,所以我也不知道哪出错了。

jdbc.properties在之前的问题那里

0 回复 有任何疑惑可以回复我~
提问者 啊jimes 2019-12-06 20:26:29

Tomcat的启动日志

06-Dec-2019 19:25:51.238 INFO [main] org.apache.catalina.core.StandardServer.await A valid shutdown command was received via the shutdown port. Stopping the Server instance.

06-Dec-2019 19:25:51.239 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-80"]

06-Dec-2019 19:25:51.257 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-nio-8009"]

06-Dec-2019 19:25:51.267 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Catalina]

06-Dec-2019 19:25:51.390 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-80"]

06-Dec-2019 19:25:51.392 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-nio-8009"]

06-Dec-2019 19:25:51.393 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-80"]

06-Dec-2019 19:25:51.394 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-nio-8009"]

06-Dec-2019 19:25:57.426 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name:   Apache Tomcat/8.5.47

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built:          Oct 7 2019 13:30:46 UTC

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.47.0

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name:               Linux

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version:            3.10.0-514.26.2.el7.x86_64

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture:          amd64

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home:             /usr/java/jdk1.8.0_231-amd64/jre

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version:           1.8.0_231-b11

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor:            Oracle Corporation

06-Dec-2019 19:25:57.428 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /root/apache-tomcat-8.5.47

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /root/apache-tomcat-8.5.47

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/root/apache-tomcat-8.5.47/conf/logging.properties

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs=

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/root/apache-tomcat-8.5.47

06-Dec-2019 19:25:57.429 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/root/apache-tomcat-8.5.47

06-Dec-2019 19:25:57.430 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/root/apache-tomcat-8.5.47/temp

06-Dec-2019 19:25:57.430 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib]

06-Dec-2019 19:25:57.765 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-80"]

06-Dec-2019 19:25:57.824 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

06-Dec-2019 19:25:57.851 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["ajp-nio-8009"]

06-Dec-2019 19:25:57.873 INFO [main] org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector Using a shared selector for servlet write/read

06-Dec-2019 19:25:57.894 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 1663 ms

06-Dec-2019 19:25:57.956 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]

06-Dec-2019 19:25:57.956 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet Engine: Apache Tomcat/8.5.47

06-Dec-2019 19:34:28.917 WARNING [localhost-startStop-1] org.apache.catalina.util.SessionIdGeneratorBase.createSecureRandom Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [510,337] milliseconds.

06-Dec-2019 19:34:28.947 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/root/apache-tomcat-8.5.47/webapps/o2o.war]

06-Dec-2019 19:34:32.424 INFO [localhost-startStop-1] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.

06-Dec-2019 19:34:32.433 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/root/apache-tomcat-8.5.47/webapps/o2o.war] has finished in [3,486] ms

06-Dec-2019 19:34:32.434 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/root/apache-tomcat-8.5.47/webapps/docs]

06-Dec-2019 19:34:32.491 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/root/apache-tomcat-8.5.47/webapps/docs] has finished in [57] ms

06-Dec-2019 19:34:32.491 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/root/apache-tomcat-8.5.47/webapps/manager]

06-Dec-2019 19:34:32.595 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/root/apache-tomcat-8.5.47/webapps/manager] has finished in [104] ms

06-Dec-2019 19:34:32.595 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/root/apache-tomcat-8.5.47/webapps/host-manager]

06-Dec-2019 19:34:32.634 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/root/apache-tomcat-8.5.47/webapps/host-manager] has finished in [39] ms

06-Dec-2019 19:34:32.634 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/root/apache-tomcat-8.5.47/webapps/ROOT]

06-Dec-2019 19:34:32.645 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/root/apache-tomcat-8.5.47/webapps/ROOT] has finished in [11] ms

06-Dec-2019 19:34:32.645 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [/root/apache-tomcat-8.5.47/webapps/examples]

06-Dec-2019 19:34:33.080 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [/root/apache-tomcat-8.5.47/webapps/examples] has finished in [434] ms

06-Dec-2019 19:34:33.115 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-80"]

06-Dec-2019 19:34:33.371 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["ajp-nio-8009"]

06-Dec-2019 19:34:33.542 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 515647 ms


0 回复 有任何疑惑可以回复我~
  • 翔仔 #1
    启动了之后现在应该是能访问了吧?o2o war包解压了没?我看启动花费516秒,大约9分钟,现在访问的话能访问上不
    回复 有任何疑惑可以回复我~ 2019-12-07 00:11:35
  • 提问者 啊jimes 回复 翔仔 #2
    解压了,不过还是拒绝了访问
    回复 有任何疑惑可以回复我~ 2019-12-07 08:15:06
  • 翔仔 回复 提问者 啊jimes #3
    那就奇怪了,同学可以把war和o2o解压出来的文件夹全部删除,然后空启动tomcat,之后访问tomcat首页试试
    回复 有任何疑惑可以回复我~ 2019-12-07 23:51:53
翔仔 2019-12-05 23:55:18

同学好,主要看看你的war有没有被解压,tomcat启动后,日志末尾有没有 tomcat started at xxx ms,需要有这句才表明启动了呢,否则看看还有什么错误

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信