2

我无法连接到 webadmin 控制台,但我可以连接到 shell 并向 Neo4j DB 写入密码查询。

日志上的错误是:

 java.lang.RuntimeException: java.net.BindException: Address already in use
    at org.neo4j.server.web.Jetty6WebServer.startJetty(Jetty6WebServer.java:334)
    at org.neo4j.server.web.Jetty6WebServer.start(Jetty6WebServer.java:154)
    at org.neo4j.server.AbstractNeoServer.startWebServer(AbstractNeoServer.java:348)
    at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:183)
    at org.neo4j.server.Bootstrapper.start(Bootstrapper.java:86)
    at org.neo4j.server.Bootstrapper.main(Bootstrapper.java:49)
Caused by: java.net.BindException: Address already in use
    at java.net.PlainSocketImpl.socketBind(Native Method)
    at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:376)
    at java.net.ServerSocket.bind(ServerSocket.java:376)
    at java.net.ServerSocket.<init>(ServerSocket.java:237)
    at javax.net.ssl.SSLServerSocket.<init>(SSLServerSocket.java:181)
    at sun.security.ssl.SSLServerSocketImpl.<init>(SSLServerSocketImpl.java:134)
    at   sun.security.ssl.SSLServerSocketFactoryImpl.createServerSocket(SSLServerSocketFactoryImpl.j ava:91)
    at    org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSocketConnector.java:450)
    at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
    at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:283)
    at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:147)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.mortbay.jetty.Server.doStart(Server.java:235)
    at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
    at org.neo4j.server.web.Jetty6WebServer.startJetty(Jetty6WebServer.java:330)
    ... 5 more
2013-09-24 20:29:02.076+0000 DEBUG [API] Failed to start Neo Server on port [7474],     reason [java.net.BindException: Address already in use] 

当我使用 lsof -i:7474 检查时,该端口上没有运行任何东西,唯一显示的是 Java 进程正在运行/正在绑定到套接字:

 COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
    java    6465 root  114u  IPv6  49348      0t0  TCP localhost:7474 (LISTEN)

我终止进程并重新启动服务器,同样的事情不断发生。

这是怎么回事?

4

0 回答 0