从本地浏览器连接远程服务器Neo4j GCE

时间:2018-02-24 13:32:40

标签: neo4j google-compute-engine

我无法从本地浏览器连接到Google Compute引擎实例的远程Neo4j服务器。

经过SO的一些研究后,我相应地编辑了我的文件,部分neo4j.conf文件如下所示:

# The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or
    # it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for
    # individual connectors below.
    #dbms.connectors.default_advertised_address=localhost

    # You can also choose a specific advertised hostname or IP address, and
    # configure an advertised port for each connector, by setting their
    # individual advertised_address.

    # Bolt connector
    dbms.connector.bolt.enabled=true
    #dbms.connector.bolt.tls_level=OPTIONAL
    dbms.connector.bolt.listen_address=0.0.0.0:7687

    # HTTP Connector. There must be exactly one HTTP connector.
    dbms.connector.http.enabled=true
    dbms.connector.http.listen_address=0.0.0.0:7474

    # HTTPS Connector. There can be zero or one HTTPS connectors.
    dbms.connector.https.enabled=true
    dbms.connector.https.listen_address=0.0.0.0:7473

    # Number of Neo4j worker threads.
    #dbms.threads.worker_count=

    #*****************************************************************
    # SSL system configuration
    #*****************************************************************

    # Names of the SSL policies to be used for the respective components.

    # The legacy policy is a special policy which is not defined in
    # the policy configuration section, but rather derives from
    # dbms.directories.certificates and associated files
    # (by default: neo4j.key and neo4j.cert). Its use will be deprecated.

    # The policies to be used for connectors.
    # 
    # N.B: Note that a connector must be configured to support/require
    #      SSL/TLS for the policy to actually be utilized.
    # 

当我从本地浏览器连接到Neo4j服务器时,出现错误:

  

neo4j-web.min.js:20与'ws://xx.xx.xx.xx:7687 /'的WebSocket连接失败:连接建立错误:net :: ERR_CONNECTION_TIMED_OUT

xx.xx.xx.xx是我的外部GCE IP。netstat --listen in GCE shows all the ports listening 7473,7474,7687 related to neo4j

netstat - 在GCE中显示所有与neo4j相关的监听7473,7474,7687的端口

0 个答案:

没有答案