我有一个在GCE Ubuntu 16.04实例上运行的neo4j服务器,我想在我的本地浏览器中访问它。当我在浏览器中输入地址时,会引发DNS错误。我该怎么做才能连接?这是我到目前为止所做的:
在GCE上添加了防火墙规则,使远程主机能够侦听端口7474和7473。
更改了/etc/neo4j/neo4j.conf中的以下行:
# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
dbms.connectors.default_listen_address=0.0.0.0
# Bolt connector
dbms.connector.bolt.enabled=true
#dbms.connector.bolt.tls_level=OPTIONAL
dbms.connector.bolt.listen_address=:7687
# HTTP Connector. There must be exactly one HTTP connector.
dbms.connector.http.enabled=true
dbms.connector.http.listen_address=:7474
# HTTPS Connector. There can be zero or one HTTPS connectors.
dbms.connector.https.enabled=true
dbms.connector.https.listen_address=:7473
Netstat输出:
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp6 0 0 :::7687 :::* LISTEN
tcp6 0 0 :::7473 :::* LISTEN
tcp6 0 0 :::7474 :::* LISTEN
每当我启动neo4j(服务neo4j start,而不仅仅是neo4j start)时,它会说:
Jul 12 18:43:50 instance-1 neo4j[2003]: 2017-07-12 18:43:50.188+0000 INFO ======== Neo4j 3.2.2 ========
Jul 12 18:43:50 instance-1 neo4j[2003]: 2017-07-12 18:43:50.358+0000 INFO Starting...
Jul 12 18:43:54 instance-1 neo4j[2003]: 2017-07-12 18:43:54.119+0000 INFO Bolt enabled on 0.0.0.0:7687.
Jul 12 18:44:03 instance-1 neo4j[2003]: 2017-07-12 18:44:03.511+0000 INFO Started.
Jul 12 18:44:08 instance-1 neo4j[2003]: 2017-07-12 18:44:08.037+0000 INFO Remote interface available at http://localhost:7474/
答案 0 :(得分:2)
这里有几件事需要检查:
希望这有帮助!
此致 汤姆