Catalina.stop:java.net.ConnectException:连接被拒绝

时间:2015-12-12 22:40:45

标签: java shell tomcat

我的服务器上安装了全新的tomcat8。当我在/ bin文件夹中调用此命令./catalina.sh时,我收到此错误:

    Using CATALINA_BASE:   /usr/share/tomcat
    Using CATALINA_HOME:   /usr/share/tomcat
    Using CATALINA_TMPDIR: /usr/share/tomcat/temp
    Using JRE_HOME:        /usr/lib/jvm/jdk1.8.0_60
    Using CLASSPATH:       /usr/share/tomcat/bin/bootstrap.jar:/usr/share/tomcat/bin/tomcat-juli.jar
    Dec 12, 2015 5:33:49 PM org.apache.catalina.startup.Catalina stopServer
    SEVERE: Could not contact localhost:8005. Tomcat may not be running.
    Dec 12, 2015 5:33:50 PM org.apache.catalina.startup.Catalina stopServer
    SEVERE: Catalina.stop: 
    java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:589)
        at java.net.Socket.connect(Socket.java:538)
        at java.net.Socket.<init>(Socket.java:434)
        at java.net.Socket.<init>(Socket.java:211)
        at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:450)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:400)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:487)

与startup.sh相同。我已经检查了端口,它是免费的。我安装了tomcat 8 new但我得到了同样的错误。

0 个答案:

没有答案