服务器拒绝访问

来源:11-7 添加平台帐号体系之需求分析和效果演示

啊jimes

2019-12-05

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

写回答

5回答

Micejian

2023-02-20

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

0
0

啊jimes

提问者

2019-12-08

//img.mukewang.com/szimg/5ded11f709eebd9f06370304.jpg

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

防火墙的信息

//img.mukewang.com/szimg/5ded130409cfec9a11090251.jpg

0
1
翔仔
清空War,单独启动tomcat也访问不了?感觉是环境有问题?可以参考https://blog.csdn.net/qq_42570879/article/details/82862585 试试重新配置一下tomcat,先保证不带项目的tomcat能访问
2019-12-09
共1条回复

啊jimes

提问者

2019-12-07

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

jdbc.properties在之前的问题那里

0
0

啊jimes

提问者

2019-12-06

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
4
翔仔
如果不能访问tomcat首页,就需要看看安全组或者防火墙了。如果能访问,再重新上传war包,然后tail -f tomcat日志,看看最新有没有出现started at xx ms,有异常再看,一般就是这些问题
2019-12-07
共4条回复

翔仔

2019-12-05

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

0
0

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程