我目前正在嘗試使用RHEL在EC2實例上正確安裝neo4j。目前,我無法通過瀏覽器訪問端口7474上的服務器,以查看neo4j webadmin或瀏覽器。截至目前,我可以成功訪問localhost:7474,這導致我認爲這是遠程連接的某種級別的訪問問題。Amazin EC2上的Neo4j - 無法從遠程機器訪問
我迄今所做的:
- 在EC2實例安裝了Oracle的Java 1.7
- 安裝的Neo4j社區-2.0.1
- 新增org.neo4j.server.webserver.address = 0.0.0.0到neo4j-server.properties
- 增加了對端口7474在EC2 UI自定義的TCP規則,允許0.0.0.0/0
- 新增7474到iptables的
- 重新啓動實例
- 運行的Neo4j開始
看netstat的我看到進程偵聽端口7474,所以我不確定還有什麼會阻止打在端口7474服務器的公共EC2 DNS對外交通。
的console.log
2014-02-24 20:25:24.572+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
2014-02-24 20:25:27.226+0000 INFO [API] Successfully started database
2014-02-24 20:25:28.924+0000 INFO [API] Starting HTTP on port :7474 with 10 threads available
2014-02-24 20:25:29.387+0000 INFO [API] Enabling HTTPS on port :7473
2014-02-24 20:25:30.077+0000 INFO [API] Mounted discovery module at [/]
2014-02-24 20:25:30.088+0000 INFO [API] Mounted REST API at [/db/data/]
2014-02-24 20:25:30.097+0000 INFO [API] Mounted management API at [/db/manage/]
2014-02-24 20:25:30.099+0000 INFO [API] Mounted webadmin at [/webadmin]
2014-02-24 20:25:30.100+0000 INFO [API] Mounted Neo4j Browser at [/browser]
2014-02-24 20:25:30.202+0000 INFO [API] Mounting static content at [/webadmin] from [webadmin-html]
2014-02-24 20:25:30.326+0000 INFO [API] Mounting static content at [/browser] from [browser]
15:25:30.328 [main] WARN o.e.j.server.handler.ContextHandler - [email protected]{/,null,null} contextPath ends with/
15:25:30.328 [main] WARN o.e.j.server.handler.ContextHandler - Empty contextPath
15:25:30.331 [main] INFO org.eclipse.jetty.server.Server - jetty-9.0.5.v20130815
15:25:30.387 [main] INFO o.e.j.server.handler.ContextHandler - Started [email protected]{/,null,AVAILABLE}
15:25:30.780 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /webadmin, did not find org.apache.jasper.servlet.JspServlet
15:25:30.802 [main] INFO o.e.j.server.handler.ContextHandler - Started [email protected]{/webadmin,jar:file:/opt/neo4j-community-2.0.1/system/lib/neo4j-server-2.0.1-static-web.jar!/webadmin-html,AVAILABLE}
15:25:31.964 [main] INFO o.e.j.server.handler.ContextHandler - Started [email protected]{/db/manage,null,AVAILABLE}
15:25:32.759 [main] INFO o.e.j.server.handler.ContextHandler - Started [email protected]{/db/data,null,AVAILABLE}
15:25:32.787 [main] INFO o.e.j.w.StandardDescriptorProcessor - NO JSP Support for /browser, did not find org.apache.jasper.servlet.JspServlet
15:25:32.789 [main] INFO o.e.j.server.handler.ContextHandler - Started [email protected]{/browser,jar:file:/opt/neo4j-community-2.0.1/system/lib/neo4j-browser-2.0.1.jar!/browser,AVAILABLE}
15:25:33.047 [main] INFO o.e.j.server.handler.ContextHandler - Started [email protected]{/,null,AVAILABLE}
15:25:33.078 [main] INFO o.e.jetty.server.ServerConnector - Started [email protected]{HTTP/1.1}{0.0.0.0:7474}
15:25:34.498 [main] INFO o.e.jetty.server.ServerConnector - Started [email protected]{SSL-HTTP/1.1}{0.0.0.0:7473}
2014-02-24 20:25:34.500+0000 INFO [API] Remote interface ready and available at [http://0.0.0.0:7474/]
neo4j.0.0.log:
Feb 24, 2014 3:25:24 PM org.neo4j.server.logging.Logger log
INFO: Setting startup timeout to: 120000ms based on -1
Feb 24, 2014 3:25:27 PM org.neo4j.server.logging.Logger log
INFO: Successfully started database
Feb 24, 2014 3:25:28 PM org.neo4j.server.logging.Logger log
INFO: Starting HTTP on port :7474 with 10 threads available
Feb 24, 2014 3:25:29 PM org.neo4j.server.logging.Logger log
INFO: Enabling HTTPS on port :7473
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted discovery module at [/]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted REST API at [/db/data/]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted management API at [/db/manage/]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted webadmin at [/webadmin]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounted Neo4j Browser at [/browser]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounting static content at [/webadmin] from [webadmin-html]
Feb 24, 2014 3:25:30 PM org.neo4j.server.logging.Logger log
INFO: Mounting static content at [/browser] from [browser]
Feb 24, 2014 3:25:31 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Feb 24, 2014 3:25:31 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Feb 24, 2014 3:25:32 PM com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Feb 24, 2014 3:25:34 PM org.neo4j.server.logging.Logger log
INFO: Remote interface ready and available at [http://0.0.0.0:7474/]
我有完全相同的問題..我可以在機器上連接,但不能在外部.. –