2017-05-24 16 views
0

Neo4J 3.0グラフデータベースを初めて使用しました。neo4jに問題があります。Neo4J 3.1.3グラフデータベースへのリモートアクセス

デフォルトではlocalhostで動作し、正常に動作しますhttp://localhost:7474/browser/。リモートサーバーにneo4jをインストールすると、オプションのサーバー構成を変更しようとしました "dbms.connector.http.listen_address = {MyIpAddress}:7474"が動作しません。

#*************************************************************** 
# Server configuration 
# 

# #{settings-reference.url} 
dbms.directories.import=import 

# Require (or disable the requirement of) auth to access Neo4j 
dbms.security.auth_enabled=true 

# 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 

# You can also choose a specific network interface, and configure a non-default 
# port for each connector, by setting their individual listen_address. 

# 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.`enter code here` 
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=:7687 

# HTTP Connector 

dbms.connector.http.enabled=true 
dbms.connector.http.listen_address=0.0.0.0:7474 


# HTTPS Connector 
dbms.connector.https.enabled=true 
#dbms.connector.https.listen_address=:#{default.https:port} 

# Certificates directory 
# dbms.directories.certificates=certificates 


# Administration client configuration 


# Comma separated list of JAX-RS packages containing JAX-RS resources, one 
# package name for each mountpoint. The listed package names will be loaded 
# under the mountpoints specified. Uncomment this line to mount the 
# org.neo4j.examples.server.unmanaged.HelloWorldResource.java from 
# neo4j-examples under /examples/unmanaged, resulting in a final URL of 
# http://localhost:${default.http.port}/examples/unmanaged/helloworld/{nodeId} 
#dbms.unmanaged_extension_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged 


# HTTP logging configuration 

# HTTP logging is disabled. HTTP logging can be enabled by setting this 
# property to 'true'. 
dbms.logs.http.enabled=false 

# Enable this to be able to upgrade a store from an older version. 
#dbms.allow_format_migration=true 


#dbms.memory.pagecache.size=10g 

# Enable this to specify a parser other than the default one. 
#cypher.default_language_version=2.0 


#dbms.tx_log.rotation.retention_policy=7 days 

# Enable shell server so that remote clients can connect via Neo4j shell. 
#dbms.shell.enabled=true 
# The network interface IP the shell will listen on (use 0.0.0.0 for all interfaces). 
#dbms.shell.host=127.0.0.1 
# The port the shell will listen on, default is 1337. 
#dbms.shell.port=1337 

エラー

私は私のIPアドレスを使用してURLを入力した場合、私は、ログインを求めルータのIPアドレスを入力した場合、私は

「をこのサイトに到達することはできません」を取得、私はエラーが表示されます。

N/A: WebSocket connection failure. Due to security constraints in your web browser, the reason for the failure is not available to this Neo4j Driver. Please use your browsers development console to determine the root cause of the failure. Common reasons include the database being unavailable, using the wrong connection URL or temporary network problems. If you have enabled encryption, ensure your browser is configured to trust the certificate Neo4j is configured to use. WebSocket 'readyState' is: 3

私は、URLを使用して、みんなで私のNeo4jにアクセスしたいです。

+1

あなたは、私が試みたが、エラーを取得0.0.0.0:7474 –

+0

にそれを変更する必要がありorg.neo4j.server.Abstra ctNeoServer $ ServerComponentsLifecycleAdapter @ 6dc3fd85 – KNS

+0

あなたの現在の設定と完全なスタックトレースを貼り付けてください –

答えて

1

neo4jブラウザは、デフォルトでデータベースに接続するためにBoltを使用します。

2種類の溶液:

A)あなたは0.0.0.0

dbms.connector.bolt.listen_address = 0.0.0.0のためにもボルトポートを設定します。あなたがボルトを無効に7687

B)ブラウザで:

enter image description here

+0

こんにちはthanxの作業ルータのレベルは、それが動作しているケーブルで意味しますが、私はこれを行う方法にアクセスする側のURLを与えたい? – KNS

+0

私のサーバーのパブリックIPアドレスを与えて、すべてのサーバーにneo4j dbにアクセスしたい – KNS

関連する問題