【问题标题】:Installing and Viewing Neo4j on Existing AWS EC2 Instance在现有 AWS EC2 实例上安装和查看 Neo4j
【发布时间】:2015-02-04 00:09:45
【问题描述】:

我正在尝试在现有的 EC2 (Amazon linux) 实例上安装 Neo4j 的企业版。到目前为止,我已经

wget "企业链接"

解压文件

重命名文件夹并将其移至 NEO4J_HOME

然后进入 neo4j.properties 的配置文件进行以下更改:

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

已编辑 Christophe Willemsen 指出,对于我最初的错误,我当时忘记重新启动服务器,但在 Web 服务器运行时我仍然无法访问它。所以为了更清楚,我编辑了剩下的帖子:

我去了 neo4j-server.properties 并取消注释:

org.neo4j.server.webserver.address=0.0.0.0

并启动服务器

NEO4J_HOME/bin/neo4j start
WARNING: Max 1024 open files allowed, minimum of 40 000 recommended. See the Neo4j manual.
Using additional JVM arguments:  -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow
Starting Neo4j Server...WARNING: not changing user
process [28557]... waiting for server to be ready..... OK.
http://localhost:7474/ is ready.

检查状态:

NEO4J_HOME/bin/neo4j status
Neo4j Server is running at pid 28557

我可以运行 shell,但是当我转到 localhost 7474 时仍然无法连接

任何帮助将不胜感激。我发现的唯一教程或帮助假设我是从头开始使用一个新实例。如果有人可以提供一些安装或修复我的配置的说明,那就太好了。

谢谢!

【问题讨论】:

  • 你启动neo4j服务器了吗?
  • neo4j-shell 也不是 Web 界面,请确保在您的防火墙配置中使端口 7474 可访问
  • 也许this link 可以帮助你。它还使用 Neo4j 企业版

标签: amazon-web-services amazon-ec2 neo4j


【解决方案1】:

您必须编辑 neo4j-server.properties 并取消注释该行:

org.neo4j.server.webserver.address=0.0.0.0

这样 db 不仅可以在 localhost 上侦听外部接口,而且您必须在防火墙规则中打开端口 (7474)。

请确保安全访问数据库:

http://neo4j.com/docs/stable/security-server.html

【讨论】:

  • 谢谢@Michael Hunger,但我已经取消注释了。我是否必须为我的 EC2 实例配置其他任何东西?它有没有关系,所以只有我的网络才能登录它?
  • AWS 控制台上有 EC2 实例的防火墙规则,您必须在其中打开端口。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-12-12
  • 1970-01-01
  • 2020-10-16
  • 2023-03-17
  • 1970-01-01
相关资源
最近更新 更多