How to access new neo4j ubuntu/ec2 install?

耗尽温柔 提交于 2019-12-08 04:30:45

问题


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" }

I opened port 7474 in the security group of my ec2 instance.

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.

Is there a step I am missing to expose the neo4j service to the public on ec2?


回答1:


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


来源:https://stackoverflow.com/questions/43699160/how-to-access-new-neo4j-ubuntu-ec2-install

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!