采纳答案成功!
向帮助你的同学说点啥吧!感谢那些助人为乐的人
我在需要连接上服务器的时候服务器拒绝访问,但是Xshell和filezilla都能正常的链接上云服务器,然后我就去查看tomcat的日志文件,最开始是报error in opening zip file,我删除了以往的日志文件后,就正常启动tomcat,但是服务器还是拒绝访问,服务器是正常开启的,安全组也是全部开启的,但是就是拒绝访问,无论是网页访问,还是微信开发者工具里的访问
jdbc.properties
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
登录后可查看更多问答,登录/注册
SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需
了解课程