gpt4 book ai didi

ubuntu - 如何访问新的 neo4j ubuntu/ec2 安装?

转载 作者:行者123 更新时间:2023-12-04 18:36:41 34 4
gpt4 key购买 nike

我在ec2上安装了neo4j并启动了服务。如果我 curl http://localhost:7474从远程外壳中,它返回一些积极的东西:
{
"management" : "http://localhost:7474/db/manage/",
"data" : "http://localhost:7474/db/data/",
"bolt" : "bolt://localhost:7687"
}

我在我的 ec2 实例的安全组中打开了端口 7474。

但是,当我尝试访问 http://ec2-52-3-253-2.compute-1.amazonaws.com:7474/在我的浏览器中,无法访问该站点。

我是否缺少在 ec2 上向公众公开 neo4j 服务的步骤?

最佳答案

我不确定 Neo4j 如何在 ec2 上运行,但尝试在 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

# 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.
dbms.connectors.default_advertised_address=localhost

关于ubuntu - 如何访问新的 neo4j ubuntu/ec2 安装?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43699160/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com