如何访问新的neo4j ubuntu/ec2安装? [英] How to access new neo4j ubuntu/ec2 install?
问题描述
我在ec2上安装了neo4j并启动了服务.如果我从远程外壳程序中curl http://localhost:7474
,它将返回正数:
I installed neo4j on ec2 and started the service. If I curl http://localhost:7474
from within the remote shell, it returns something positive:
{
"management" : "http://localhost:7474/db/manage/",
"data" : "http://localhost:7474/db/data/",
"bolt" : "bolt://localhost:7687"
}
{
"management" : "http://localhost:7474/db/manage/",
"data" : "http://localhost:7474/db/data/",
"bolt" : "bolt://localhost:7687"
}
我在ec2实例的安全组中打开了端口7474.
I opened port 7474 in the security group of my ec2 instance.
但是,当我尝试访问 http://ec2-52-3-253-2.compute-1.amazonaws.com:7474/在我的浏览器中,无法访问该网站.
However when I try to access http://ec2-52-3-253-2.compute-1.amazonaws.com:7474/ in my browser, the site can't be reached.
我缺少向ec2公开neo4j服务的步骤了吗?
Is there a step I am missing to expose the neo4j service to the public on ec2?
推荐答案
我不确定Neo4j如何在ec2上运行,但是请尝试在neo4j.conf中设置这两个设置,以允许非本地连接并设置广告地址.
I am not sure how does Neo4j run on ec2, but try setting this two setting in neo4j.conf, to allow non-local connections and maybe set an advertised address.
# 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
这篇关于如何访问新的neo4j ubuntu/ec2安装?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!