无法连接到Neo4j的webadmin控制台

时间:2013-09-24 20:46:43

标签: java sockets web neo4j localhost

我无法连接到webadmin控制台,但我可以连接到shell并向Neo4j数据库写入cypher查询。

日志中的错误是:

 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)

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

发生了什么事?

0 个答案:

没有答案