首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Neo4J 3.1.3图形数据库远程访问

Neo4J 3.1.3图形数据库远程访问
EN

Stack Overflow用户
提问于 2017-05-24 10:44:01
回答 1查看 2.9K关注 0票数 2

我是neo4j 3.0图形数据库的新手,我对Neo4J有一些问题。

默认情况下,它适用于本地主机,并且工作良好的http://localhost:7474/browser/。现在,我希望允许访问每个人,我在远程服务器上安装了neo4j,并且我尝试在选项neo4j中更改服务器配置,但无法工作。

代码语言:javascript
运行
复制
#***************************************************************
# 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

我想访问我的neo4j在每个人使用url。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-05-24 15:32:24

默认情况下,neo4j浏览器使用Bolt连接数据库。

有两种解决办法:

( a)您还将螺栓端口设置为0.0.0.0

dbms.connector.bolt.listen_address=0.0.0.0:7687

( b)在浏览器中禁用螺栓:

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/44156066

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档